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
.
Click to load comments...