I have a TypeScript class like the following
export class A
{
myFunc(n : number){
alert(n);
}
}
I need to render an attribute on my select element onchange event so it will call the TypeScript class method.
writer.AddAttribute(HtmlTextWriterAttribute.Onchange,
string.Format("javascript:new A().myFunc({0})", this.Number));
My question is how can I find the exact definition so I will be able to render a proper call to the TypeScript function?
This is how the compiled js looks like...
define("app", ["require", "exports", "jquery"], function (require, exports, $) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function myFunc(rsw_id) {
alert(rsw_id);
}
});