listen on an input onclick of a button angular code example Example: onclick event in angular (click)="myClickFunction($event)"