on click in angular 8 code example Example: onclick event in angular (click)="myClickFunction($event)"