Plugin Development
Create installable Vue plugins.
What Is a Plugin?
A Vue plugin packages app-level functionality you can install in one call: global components, directives, properties, or third-party integrations. Plugins are how libraries like Vue Router and Pinia plug into your app.
The install Function
A plugin is an object with an install method (or simply a function). Vue calls it with the app instance and any options you pass.
export const myPlugin = {
install(app, options) {
// set up global features here
}
}All lessons in this course
- Mixins and Custom Directives
- Plugin Development
- Scalable Folder Structure