Question, how can I use this using plain-old javascript in a web browser?
The "vue-resource" extension for example includes a handy bit of logic to automatically register itself:
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
}
vue-js-model doesn't include any such logic, so just wondering how I actually use in a web browser where import/require aren't available.
Thanks
Just found this little snippet in the README which did the trick:
Vue.use(window["vue-js-modal"].default);
This should be mentioned in the Usage in the README.
Most helpful comment
Just found this little snippet in the README which did the trick: