Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
> Lesson 50

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...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom