The video for this lesson is currently being updated, please read the transcript instead.

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.

To view the complete lesson you'll need to login or join this course.


Click to load comments...