Amazing Features of Angular JS
- Two way data binding: – It is the most crucial and useful feature of Angular JS.
Data Binding in Classical Template System:
Most templating systems bind data in only one direction: they merge template and model components together into a view. After the merge occurs, changes to the model or related sections of the view are NOT automatically reflected in the view. Worse, any changes that the user makes to the view are not reflected in the model. This means that the developer has to write code that constantly syncs the view with the model and the model with the view.
Data Binding in Angular Templates:
Angular templates work differently. First the template (which is the uncompiled HTML along with any additional markup or directives) is compiled on the browser. The compilation step produces a live view. Any changes to the view are immediately reflected in the model, and any changes in the model are propagated to the view. The model is the single-source-of-truth for the application state, greatly simplifying the programming model for the developer.
- MVC Capability
Angular JS does not require writing lengthy codes to connect the MVC components of split apps, which saves oodles of time and effort. Just split the app and let Angular do the rest for you by managing the components and also connecting them all by itself.
- Hrudya Raj