Jan 6 in Angular
Q: What is Data Binding? How many ways it can be done?

1 Answer

Jan 6
In order to connect application data with the DOM (Data Object Model), data binding is used. It happens between the template (HTML) and component (TypeScript). There are 3 ways to achieve data binding:

Event Binding – Enables the application to respond to user input in the target environment

Property Binding – Enables interpolation of values computed from application data into the HTML

Two-way Binding – Changes made in the application state gets automatically reflected in the view and vice-versa. The ngModel directive is used for achieving this type of data binding.
Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

Sep 20 in XML
Jan 18 in Machine Learning
Dec 1, 2019 in DevOps