click in angular 8 code example
Example 1: onclick event in angular
(click)="myClickFunction($event)"
Example 2: click binding angular 8
<button (click)="myFunction()"></button>
(click)="myClickFunction($event)"
<button (click)="myFunction()"></button>