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