Нажмите на привязку Angular 8
<button (click)="myFunction()"></button>
madmax9242
<button (click)="myFunction()"></button>