Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Structuring Large AngularJS Applications: Modules and ngStart

DZone's Guide to

Structuring Large AngularJS Applications: Modules and ngStart

· Web Dev Zone ·
Free Resource

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

How do you structure your large AngularJS applications? This recent blog post from Marco Rinck at Entwicklertagebuch explores the author's original (less effective) method of structuring AngularJS applications, and compares it to the strategy he settled upon after some experimentation, which is a more modular approach using ngStart.

His original approach (a controllers folder, and a directives folder, and a services folder, and so on) led to obscured dependencies, difficulty with refactoring, and a general lack of clarity and organization in the code. The revised strategy, on the other hand, is much more organized and flexible.

For a complete overview of Rinck's modular AngularJS organizational strategy, check out the full post at his blog, and check out ngStart as well.

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}