0👍
In your vue application main.js you can define your vue instance like:
window.app = new Vue({
store,
render: h => h(App)
});
app.$mount('#app');
From external js you can access your Vue instance from app
object.
If you are using vuex you can call actions like:
app.$store.dispatch('ACTION_NAME', 'Payload');
- [Vuejs]-Vue 3 + Typescript + JSX and img loading={"lazy"} give error: Property 'loading' does not exist on type 'ElementAttrs<ImgHTMLAttributes>'
- [Vuejs]-V-autocomplete with select all and clear in vuetify
Source:stackexchange.com