Alexandru Horeanu
Alexandru Horeanu
Or as directive (Vuetify), it is hackish but works for now. ``` Vue.directive('cleave', { bind(el, binding, vnode) { const input = el.querySelector('input') // @ts-ignore input._vCleave = new Cleave(input, binding.value) },...
A fix will be released soon. https://github.com/weprovide/valet-plus/pull/554
Mine is working as expected, maybe because I use the maps option on the nuxt root config. ¯\\_(ツ)_/¯ ``` modules: [ // https://github.com/WilliamDASILVA/nuxt-google-maps-module 'nuxt-google-maps-module' ], maps: { key: 'CODE' }...
Have a look at https://github.com/WilliamDASILVA/nuxt-google-maps-module/issues/10#issuecomment-605598591
Using the same trick he did in the plugin: https://github.com/WilliamDASILVA/nuxt-google-maps-module/blob/master/src/plugin.template.js#L18 ``` mounted() { const that = this; const event = new window.Event('maps-module:initiated'); window.dispatchEvent(event); window.addEventListener('maps-module:loaded', () => { that.initGoogleApi(); }); },...
Because that is a component method. :) Inside the event function, you can use `this.$google` as you would normally do.
You can create your own. Here's mine: ``` import Google from 'nuxt-google-maps-module' import Vue from 'vue' declare module 'vue/types/vue' { interface Vue { $google: Google } } ```