Event Binding
~20 mins
Event Binding
- Event binding allows you to listen for and respond to user actions such as keystrokes, mouse movements, clicks, and touches.
<button (click)="onSave()"> Save </button>
onSave(){
alert("Button onSave clicked");
}