I'm trying to implement an async validator in angular with devextreme components. For this, I defined a service with a function. Then I import this service into the appropriate component, define a property in the constructor and then call the function. But I get the error, that this.asyncval is undefined
. Why?
Here is a stackblitz: https://stackblitz.com/edit/angular-dxpopup-et6z3y
Just click the new partner button, write some text in the name field and then hit tab and review the console.