call function from html typescript code example
Example: html call typescript function
myFunction(param1: string) {
console.log('Everything is ok...');
return param1 + 1;
}
<button (click)='myFunction("parameter")'>Button Click</button>
myFunction(param1: string) {
console.log('Everything is ok...');
return param1 + 1;
}
<button (click)='myFunction("parameter")'>Button Click</button>