O'Reilly logo

AngularJS Directives Cookbook by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Directory structure for common components

A very useful way to develop applications with AngularJS is to use a code generator, use a simple Boilerplate, or to create your own generator or guidelines to follow. We have a lot of good practices spreading on the Internet. However, you should find your own way too.

We often need to write enough code to have a fast start, and putting a simple application in production requires many lines of code, so using tools like generators can be very productive. However, let's see some tips on how to organize our code in order to have a highly scalable application.

Getting ready

Regardless of a code generator or boilerplate, you should choose to organize your content in a modular way by grouping by features. Grouping ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required