Skip to Content
Jump Start Vue.js, 2nd Edition
book

Jump Start Vue.js, 2nd Edition

by Nilson Jacques
September 2021
Beginner to intermediate content levelBeginner to intermediate
164 pages
2h 7m
English
SitePoint
Content preview from Jump Start Vue.js, 2nd Edition

Chapter 5: Routing

If you’ve built server-side web apps before, you’ll be familiar with putting some thought into the URL structure of your application.

Using a client-side router will give your SPAs the advantages of a server-side web app—namely, the ability to use the browser’s back and forward buttons to move through your app’s screens, and the ability for the user to bookmark specific screens and/or states of your app.

Vue has the advantage of having a library that’s not only extremely capable and well documented, but which is also the official routing solution for Vue, and is guaranteed to be maintained and kept in sync with the development of the core library.

Installing Vue Router

The router can be easily added to your app via npm (

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

Jump Start Vue.js

Jump Start Vue.js

Nilson Jacques
Vue.js: 11 Practical Projects

Vue.js: 11 Practical Projects

James Hibbard, Yomi Eluwande, Michael Wanyoike, Nilson Jacques, Christopher Vundi, Deji Atoyebi, Ivaylo Gerchev

Publisher Resources

ISBN: 9781098129507Errata Page