AngularJS Introduction in short
Main Feature. No manosees the DOM to access the value of an item.
This is achieved by updating the view automatically when the model changes vice versa, or. Two-way data binding.
We have templates that extend the vocabulary of HTML code to provide the introduction of logic in representing our information.
- Reausability . Creates components (directives) easily reusable (allowing completely isolating function, not collide with each other).
- Testing . By having separate components, we can test its behavior independently.
- Dependency Injection . If we need to use a service, we inject our driver directly and it works.
Scope . It is responsible for detecting changes in the model and provides context to the templates.
Controller . It is the code with the logic that connects the model with the view.
Model . Are the data, which together produce the template views.
Views . What the user sees. Part of a template, merges with the model and render in the DOM tree.