I'm using angular devexpress version. In my form i have dxselectbox
, it has onselectionchanged
event function to get the selected value. I can able to get the value but in the call back function i can't able to access another method are global declared variable it shows undefined.
products : any[];
.....
onSelectionChangedCallback(event){
let value = event.selectedItem;
this.test(); // shows undefined
this.products; // shows undefined
}
test(){
alert('');
}
What is the issue ? Please help