Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Vue Foundations > Lesson 94

Making tooltip a custom plugin

In the last video, we learned about plugins. Let's now abstract our tooltip directive code into our own custom plugin.

We'll do this for two reasons - firstly because it's best to separate our functionality, and secondly, so the directive can easily be reused in other apps.

Creating the plugin file

So let's firstly create a directory for any plugin files. So we'll go to the terminal and put mkdir src/plugins.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom