[Vuejs]-Trouble using the returned callback data from google maps geocoder

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)
       })
    }

Leave a comment