You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I unistalled vue2-google-maps via: npm uninstall vue2-google-maps
and then ran npm install gmap-vue
and changed import * as VueGoogleMaps from 'vue2-google-maps'
to import * as VueGoogleMaps from 'gmap-vue'
in my main.js and then the "slots" started to work.
The text was updated successfully, but these errors were encountered:
Shouldn't
npm install vue2-google-maps
instead be
npm install gmap-vue
and
import * as VueGoogleMaps from 'vue2-google-maps'
instead be
import * as VueGoogleMaps from 'gmap-vue'
The reason for this, is that I could not get custom text field via scoped slot to work with the gmap-autocomplete component.
I looked in node_modules/vue2-google-maps/dist/components/autocomplete.vue in my project folder, and saw:
I.e, No support for slots
Then I looked in you github repository in packages/gmap-vue/src/components/autocomplete.vue and saw:
I.e, support for slots.
So I unistalled vue2-google-maps via:
npm uninstall vue2-google-maps
and then ran
npm install gmap-vue
and changed
import * as VueGoogleMaps from 'vue2-google-maps'
to
import * as VueGoogleMaps from 'gmap-vue'
in my main.js and then the "slots" started to work.
The text was updated successfully, but these errors were encountered: