CHAPTER 9

image

The Anatomy of an AngularJS App

AngularJS applications follow the MVC pattern that I described in Chapter 3, but the development process itself relies on a wider range of building blocks. There are, of course, the headline building blocks—the model, the views, and the controllers—but there are lots of other moving parts in an AngularJS app as well, including modules, directives, filters, factories, and services. During development you use these smaller components to flesh out the bigger MVC pattern.

The different types of AngularJS component are tightly integrated, and to demonstrate one feature, I’ll often have to use several others. ...

Get Pro AngularJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.