i am using angular 5 and facing a problem. i want to submit (click) event and call two or multiple method one bye one. Please give me idea or solution so that i can submit a (c
This is the correct way I guess. It is working for me.
<button (click)="abc(); bcde()"></button>
you can also do
<button (click)="[abc(), bcde()]"></button>
<button (click)="callall()"></button>
make one function and call all the function in that
function 1
abc(){}
function 2
bcde(){}
call both in common function
callall(){
this.abc()
this.bcde()
}