execute typescript function in javascript 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>