D
D
Denis2020-09-05 14:50:20
Vue.js
Denis, 2020-09-05 14:50:20

How to create a plugin for Vue.js from a component?

I wrote a certain component and I want to use it in other projects as a plugin.
Can I do it?

Those. I have a vue-tooltip component, it is connected via import on the necessary pages and I wrap some html element in a tag . How to rewrite this component in a plugin? I'm just learning and haven't figured out plugins yet. <vue-tooltip>...</vue-tooltip>


Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gimir, 2020-09-05
@Gimir

In office Vue.js docs have instructions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question