how to fire button click event from code in angular from component code example Example: onclick event in angular (click)="myClickFunction($event)"