html call typescript function

Solutions on MaxInterview for html call typescript function by the best coders in the world

showing results for - "html call typescript function"
Noemi
26 Mar 2019
1myFunction(param1: string) {
2    console.log('Everything is ok...');
3    return param1 + 1;
4}
5
6<button (click)='myFunction("parameter")'>Button Click</button>