0👍
You may import
the component to every Vue component and use it like this:
import someComponent from './someComponent'
export default {
created () {
Component.initialize()
}
}
Or you could use instance properties, see https://v2.vuejs.org/v2/cookbook/adding-instance-properties.html
- [Vuejs]-In Vue.js, how do I enable buttons in a v-for loop when an input is changed?
- [Vuejs]-Laravel, Vue, and Momentjs Adding dates by fetching data in the modal and send to the database
0👍
I got a solution:
import Component from './component'
// Call method
Component.methods.method()
- [Vuejs]-Build a Vue component for "unpkg"
- [Vuejs]-A unrelated vuejs app route handled by the server?
Source:stackexchange.com