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