[Vuejs]-JQuery component to Vue

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

0👍

I got a solution:

import Component from './component'

// Call method
Component.methods.method()

Leave a comment