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

10. Custom Functionality

Brett Nelson1 
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 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.