【发布时间】:2014-09-02 13:53:50
【问题描述】:
我正在使用 ng-boilerplate (v0.3.2-release),我正在尝试添加 ngAnimate,但它不起作用!我确定我错过了一些愚蠢的东西。
我有一个指向正确 CDN 的链接:
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-animate.min.js"></script>
在浏览器 Sources 中检查显示文件已正确加载。
但是当我尝试将 ngAnimate 添加到我的模块时:
angular.module( 'ngBoilerplate.UserDetails', [
'ui.router',
'plusOne',
'ngAnimate'
])
Grunt 失败并说 karma:unit:run 失败。
我使用 bower 在供应商目录 (like in this question) 中安装了 ng-animate,但这也不起作用。
【问题讨论】:
标签: angularjs loading-animation