Generate Angularjs app with latest unstable branch

2019-05-11 22:58发布

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条回答
可以哭但决不认输i
2楼-- · 2019-05-11 23:22

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.

查看更多
登录 后发表回答