Generate Angularjs app with latest unstable branch?

*爱你&永不变心* 提交于 2019-12-07 17:49:20

问题


Just started using Yeoman and loving it. However, I am building an app that depends on some Angular 1.1.x features (ng-trim and ng-animate), and the Angular-generator uses the latest stable branch as its default, which doesn't include these features.

In Yeoman, is there any way to generate an Angular app with the latest 'unstable' branch?


回答1:


One solution is to update your bower.json and use an unofficial build of angular unstable:

"dependencies": {
    "angular": "atizo/bower-angular-unstable#~1.1.5",

Then you have to rerun bower install.



来源:https://stackoverflow.com/questions/16809620/generate-angularjs-app-with-latest-unstable-branch

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