typescript でクラス コンストラクターの ID に変更イベントを追加しています。その変更イベント内でクラス関数にアクセスしたいのですが、イベント内では「これ」はクラスではないようです。そこから関数にアクセスするにはどうすればよいですか?
export class Document_Uploads {
constructor() {
$("#FormBrokerReferenceID").change(function () {
= $("#FormBrokerReferenceID").val();
//inside this event it does not work
this.Validate()
});
// works here inside constructor
this.Validate()
}
Validate() {
var valid: bool = true;
some other code
}
}