I have a problem with jqxValidatorComponent in Angular 2,
from typescript the following call works fine also according to the example:
this.myValidator.validate(document.getElementById(‘formUserDetail’));
but I’m not able to use the onSuccess:
this.myValidator.onSuccess(this.onSaveContinue)
I receive an error “Cannot read property ‘username’ of undefined”
The typescript method normally works, but not from onSuccess:
user:any = new Object();
onSaveContinue(): void
{
if (this.user.username==null) {
….
}
}
Is there a way to make it work?
Thanks
Andrea