onclick on input field in angukar 7 code example Example: onclick event in angular (click)="myClickFunction($event)"