One of the features that makes AngularJS standout is the ability to bind the model with the views without having to write controller code to connect things together. More over it keeps them in sync, so for example, if the view either the view or the model are updated it refreshes the other automatically
As an example, consider the following snippet of code consisting of two input fields for filtering first and last names, and a list of results.
In this case, we have combined all our input fields in a single model object called
filters. Moving on, we have a
repeat section in which we applied the filters to a list called
results. Angular will look into each object we iterate over, check if the object has
lastName attributes and if it has them, it will compare their values to
For more information go to the AngularJS documentation on filters