Data-binding means communication between the TypeScript code and template. Using Data Binding, the user can able to manipulate the elements. Therefore, whenever some variable has been changed, that particular change must be reflected in the Document Object Model Data-binding can be either one-way or two-way. Angular provides various types of data binding - 1.String Interpolation 2.Property Binding 3.Event Binding 4.Two-way binding String Interpolation String Interpolation is a one-way data-binding which is used to output the data from a TypeScript code to HTML template (view). It uses the template expression in double curly braces{{}} to display the data from the component to the view. app.component.ts app.component.html <h3><title name: {{title}}</h3> in the above example, the output will be title name: String Interpolation Data Binding Property Binding Property binding is also a one-way data binding, where we bind a property of a DOM element to a field...
Amritanjali's blog UI Source on UI related technologies like Angular, TypeScript, JavaScript, HTML, CSS.