Summary
The capability to manage events is one of the most critical components in most AngularJS applications. You can use events in AngularJS applications to provide user interaction with elements as well as components of the application communicating with each other to know when to perform certain tasks. This chapter started off with a brief discussion about browser and user interaction events and how they relate to the overall application architecture.
Next the chapter covered using the $watch, $watchGroup, and $watchCollection methods to watch values in the scope. Using watches allows you to act on changes to the scope values without having to place code in every location where those values might change.
Scopes are organized into hierarchies, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access