Understanding Scopes

In AngularJS, the scope acts as a data model for an application. It is one of the most critical parts of any application that relies on data in any fashion because it acts as the glue that binds together the views, business logic, and server-side data. Understanding how scopes work enables you to design your AngularJS applications to be more efficient, use less code, and be easier to follow.

The following sections discuss the relationships between scope and applications, controllers, templates, and server-side data. There is also a section that covers the life cycle of scope, to help you see how scope is built, manipulated, and updated during the application life cycle.

Get Learning 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.