Vue essentials - Plugins
If you want to provide reusable, global-level functionality for a Vue app, you can make a plugin.
We've already used a plugin in this project - the Vue Router plugin. This plugin is used to add global components including the router-view
and router-link
components, as well as instance properties like the $route
object which can be access from anywhere in the app.
In this lesson, we're going to learn how we can make and use our own custom plugins.
Click to load comments...