Question:Explain Two-way and One-way data binding in AngularJS? 

Answer Two-way data binding - It is used to synchronize the data between model and view. It means, any change in model will update the view and vice versa. ng-model directive is used for two-way data binding. One-way data binding - This binding is introduced in Angular 1.3. An expression that starts with double colon (::), is considered a one-time expression i.e. one-way binding. 

+ Report
Total Preview: 798
Explain Two-way and One-way data binding in AngularJS?
Copyright © 2024. Powered by Intellect Software Ltd