© Brett Nelson 2018
Brett NelsonGetting to Know Vue.jshttps://doi.org/10.1007/978-1-4842-3781-6_10

10. Custom Functionality

Brett Nelson1 
(1)
Eagan, Minnesota, USA
 

Plugins offer a way to extend the global functionality of Vue by creating default behavior, adding global components, or generally creating values throughout your Vue app. Filters allow us to create reusable text transformation that we can apply to our templates. Let’s take a look at how to create and use these features in Vue.

Plugins

Plugins allow us to expand Vue to meet our needs in a manner that we can share with other Vue apps without sharing our entire app.

Creating a Plugin

To create a plugin, make a JavaScript object that exposes an install function. The install function accepts ...

Get Getting to Know Vue.js: Learn to Build Single Page Applications in Vue from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.