get onclick event angular 7 code example Example: onclick event in angular (click)="myClickFunction($event)"