How to split AngularJS application into smaller modules and handle routing correctly?

后端 未结 4 1781
半阙折子戏
半阙折子戏 2020-12-24 07:18

What would be the best way to split AngularJS application into smaller pieces/module? For example if I have a blog post and commenting enabled for that, I t

4条回答
  •  忘掉有多难
    2020-12-24 07:34

    I hope you can use "ui-router" routing module.

    Here is good tutorial for this http://www.ng-newsletter.com/posts/angular-ui-router.html

提交回复
热议问题