IfOnly
IfOnly

Reputation: 540

Understanding STATE in angularJS

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

Answers (1)

null
null

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

Related Questions