Adding ui.bootstrap dependency with bower

落爺英雄遲暮 提交于 2019-12-02 17:00:33
pkozlowski.opensource

You are installing a wrong package from bower. The correct one to install is bower install angular-bootstrap as described here: https://github.com/angular-ui/bootstrap#installation

Edit:

As of February 2015, a Bower version of the library exists at https://github.com/angular-ui/bootstrap-bower.

Unfortunately, it presently only contains AngularUI Bootstrap 0.12.0 which, as far as I can tell, isn't fully compatible with Angular >= 1.3. It looks like the maintainers intend AngularUI Bootstrap >= 0.13.0 to be compatible with Angular 1.3, <>but that version of the library seems not to have made its way to the Bower-compatible repo yet.
No longer an issue, AngularUI Bootstrap 0.13.0 version is now provided and supported.

install the bower version that depends on the angular version that your project uses.

I first installed;

bower install angular-ui-bootstrap-bower#0.13.4

Then I added below to bower.json

"angular-ui-bootstrap-bower": "0.13.4"
Odeyinka Olubunmi
bower install angular-ui-bootstrap --save

This also works.

Please refer to this answer if you have any issue with the version installed by bower. There seems to be some version issues with ui-boostrap quoting the answer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!