Vue Plugins
In this example we show how to add a vue plugin to your application
In this example:
plugins/vue-toolitp.js
imports our tooltip and tells Vue to use..
pages/index.vue
uses our plugin.
nuxt.config.js
contains the plugins
property to register our plugin and the css
property to add our tooltip css.
package.json
show our tooltip package has been installed.
Learn more in the Directory Structure book in the plugins chapter.
Loading Sandbox...
Editer cette page sur GitHub
Mise à jour le Mon, July 12, 2021