Closed vishalv26 closed 6 years ago
Im guessing your scope for this
inside the promise refers to that function and not the outer scope.
try:
var that = this;
this.appVersion.getPackageName().then(function (getPackageName) {
alert(that.file.externalCacheDirectory);
});
example :
bit not getting alert if called like this
});
i assume it clears everything in this.* if called once