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