Reputation: 540
I am new to AngularJS. I tried to read about how states work in angular and different fields present in it, but didn't find any useful materials. Also AngularJS documentation doesn't explain states in a proper way, so if there are any resources to get good grasp of states in AngularJS.
Upvotes: 3
Views: 12692
Reputation: 7926
State is represented by scope objects.
Angular is a MVC/MVVM like framework where models (and view models) present the state of a certain context. Models object can for instance reflect the state of a database record or can be objects that define the current situation of the user interface.
Controllers and view models are used to manipulate model state.
Angular model objects are wrapped in scope instances, which are assigned to HTML (view) elements. Scopes are like view models from MVVM but differ in that they inherit from each other based on nesting of the HTML element.
Some good starter links:
Upvotes: 10