L
L
Little Vasya2018-07-05 20:57:22
Vue.js
Little Vasya, 2018-07-05 20:57:22

How to call plugin with Vuejs component?

There is a snippet of the modal.js plugin code,
but I need to push my component there on a
successful click, I need to display it

export default {
  install(Vue, options) {
    Vue.prototype.$message = function(params) {
      alert(params)
    }
  }
}

listing
isOpen() {
      this.$message('Open')
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question