on button click change data in angular 8 code example Example: click binding angular 8 <button (click)="myFunction()"></button>