bind function to button Angular 10 code example Example: click binding angular 8 <button (click)="myFunction()"></button>