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

Deploy code to production now. Release to users when ready. Learn how to separate code deployment from user-facing feature releases with LaunchDarkly.

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.

Deploy code to production now. Release to users when ready. Learn how to separate code deployment from user-facing feature releases with LaunchDarkly.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}