Skip to Content
Vue.js 2 Cookbook
book

Vue.js 2 Cookbook

by Andrea Passaglia
April 2017
Intermediate to advanced
454 pages
12h 51m
English
Packt Publishing
Content preview from Vue.js 2 Cookbook

Introduction

Directives and plugins are ways to package functionality in a reusable way and also make it easily shareable across apps and teams; you will build a few of them in this chapter. Render functions are how Vue really works under the hood to turn templates into the Vue language and then into HTML and JavaScript again; they become useful if you need to optimize the performance of your apps and work in some corner cases.

In general, you should avoid using these advanced functions when possible as they have been a little overused in the past. Usually, many problems can be solved by simply writing a good component and distributing the component itself; you should look at advanced features only when this is not true.

This chapter is for ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Vue.js 2

Learning Vue.js 2

Olga Filipova
Pro Vue.js 2

Pro Vue.js 2

Adam Freeman

Publisher Resources

ISBN: 9781786468093Supplemental Content