I have a variable called LangDataService.isDataReady , which is a Promise wawiting solution. After elimination there will be logic. How can I convey this to this promise?
LangDataService.isDataReady.then(function () { this.modalOn() });
I know that I can cache var self_ = this; but am I curious about other alternatives?
source share