How do I get the this.ID in the OnSuccess and in OnFailure?
I'm trying to import a dictionary into my angular project using pagemethods.
ID:number = 1;
ngAfterViewInit() {
window['PageMethods'].getCustomAction(this.OnSuccess, this.OnFailure);
}
OnSuccess(succes:any)
{
if(1 == this.ID)
{
//Code
}
}
OnFailure(error:any)
{
}