Friday, November 2, 2018

Event Binding In Angular

In this article, we are going to learn how the event binding works in angular application. As we know that in any module the update on property value in component class will update the view template, that is nothing but the data binding. But sometimes we need the data flow on the basis of some event. The event can be a click of a button, movement of a mouse, double-click, on mouseover etc. So the data binding is simply the binding of property value in component class to the HTML template, but the event binding binds the value from template to the component class.

source https://www.c-sharpcorner.com/article/event-binding-in-angular/

No comments:

Post a Comment