angularjs – 添加ui.bootstrap依赖与bower
我试图添加ui.bootstrap依赖关系到我的角项目(我使用yeoman,bower)。
我这样做: > yo角 然后我添加了ui.bootstrap依赖关系到我的app.js: angular.module('angularuiprojectApp',[ 'ngCookies','ngResource','ngSanitize','ngRoute','ui.bootstrap']) 当我试图访问我的index.html在Chrome我收到此错误:
我不知道我在哪里错了,如果有人可以帮助我这个…
您正在从bower安装错误的软件包。正确的安装是bower install angular-bootstrap,如下所述:
https://github.com/angular-ui/bootstrap#installation
编辑: 截至2015年2月,图书馆的Bower版本存在于https://github.com/angular-ui/bootstrap-bower。 不幸的是,它目前只包含AngularUI Bootstrap 0.12.0,据我所知,它不完全兼容Angular> = 1.3。看起来维护者希望AngularUI Bootstrap> = 0.13.0与Angular 1.3兼容,但是该库的版本似乎还没有到达Bower兼容的仓库。不再是问题,AngularUI Bootstrap 0.13.0版本现在提供和支持。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |