Structuring Large AngularJS Applications: Modules and ngStart
Join the DZone community and get the full member experience.Join For Free
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.
Opinions expressed by DZone contributors are their own.