Question
Vue.js refs are undefined, even though this.$refs shows theyre there
I have a reference to a component
<Gmap ref="mapRef">
In mounted I am doing this, to see the objects are available
mounted(){
let self = this
console.log(self.$refs) // Shows the mapRef object reference
console.log(self.$refs.mapRef) // returns undefined ???
}
self.$refs shows...
mapRef: VueComponent {_uid: 207, _isVue: true, $options: {…}, _renderProxy: Proxy, _self: VueComponent, …}
So then why does self.$refs.mapRef
return undefined??
Even though it's clearly there??