I am calling api to return certain json response and I can see successfull response.
MockDataService.getChannelData(function(response){
if(response){
this.channels =response;
}
});
As soon as code hits this.channels = reponse, I get TypeError: Cannot set properties of undefined (setting 'channels')
I can't seem to figure out how to ensure scope is correct here. I can't use arrow funtions here due to platform support
Just affixing scope with bind worked