【问题标题】:Can't load ngAnimate in ng-boilerplate无法在 ng-boilerplate 中加载 ngAnimate
【发布时间】: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


    【解决方案1】:

    代表 OP 添加。

    在 build.config.js 文件中,我已将 ng-animate.js 的路径添加到 vendor_files,问题已解决 :)

    【讨论】:

      猜你喜欢
      • 2014-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多