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

12. Using Routers

Brett Nelson1 
Eagan, Minnesota, USA

Being able to quickly change the look and layout of a page without doing a full-page refresh is awesome, but users like to have links that take them directly to content as well. After all, what good is a nice web app if you can’t share a link to the content? This chapter looks at a few different ways to implement routing with Vue.

DIY Router

First up in our list of router options is the famous do-it-yourself (DIY) router. With the DIY router, you don’t get any features to start with since you are creating it yourself. What you do get is possibly the lightest router option. If you don’t need anything ...

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.