how to include ngAnimate dependency in angular with yeoman

怎甘沉沦 提交于 2019-12-05 08:01:34
Oscar

You can try one of the two following solutions:

  1. add it to you bower.json file as a dependency, then run bower update

or

  1. open terminal in you project directory and run: bower install angular-animate

either one will persist it to your bower.json file and cause it to not be deleted when you run grunt server again.

Eduardo Dennis

You have to do this:


1. Install with bower:

bower install angular-animate


2. Add a < script /> to your index.html:

< script src="/bower_components/angular-animate/angular-animate.js"></script >


3. And add ngAnimate as a dependency for your app:

angular.module('myApp', ['ngAnimate']);

See the ng-newsletter post on ngAnimate for more information on these steps

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