我这样做:
> yo角
> bower安装angular-ui
>然后我添加到我的index.html文件:和
> grunt服务
然后我添加了ui.bootstrap依赖关系到我的app.js:
angular.module('angularuiprojectApp',[ 'ngCookies','ngResource','ngSanitize','ngRoute','ui.bootstrap'])
当我试图访问我的index.html在Chrome我收到此错误:
Uncaught Error: [$injector:modulerr] Failed to instantiate module
angularuiprojectApp due to: Error: [$injector:modulerr] Failed to
instantiate module ui.bootstrap due to: Error: [$injector:nomod]
Module ‘ui.bootstrap’ is not available! You either ……1)
我不知道我在哪里错了,如果有人可以帮助我这个…
谢谢。
编辑:
截至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版本现在提供和支持。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。