how to call typescript function from javascript file 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>