AngularJS application file structure

后端 未结 6 1104
有刺的猬
有刺的猬 2020-11-30 20:05

On a large AngularJS application having all my controllers in a single \"controllers.js\" file seems a little un-maintainable to me. Is there a better way to do this such as

6条回答
  •  难免孤独
    2020-11-30 20:36

    You may wish to have a look at this community-driven guide.

    The guide describes best practices for organizing the directory structure of a large AngularJS application.

    It also makes recommendations on naming and structuring AngularJS modules, controllers, directives, filters and services.

    It's also worth it to check out a tool like Lineman.js with the AngularJS application template.

    For enterprise AngularJS projects, you may wish to look at this kickstarter which is based on ng-boilerplate.

提交回复
热议问题