0👍
I solved my problem by putting the properties of “this” is a separate variable(self) which made all of those methods accessible inside the callback function
searchLocal(){
let self = this
this.getLocationData(function(locationData) {
self.newFunction(locationData)
})
}
Source:stackexchange.com