O'Reilly logo

The Majesty of Vue.js by Kostas Maniatis, Alex Kyriakidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Vue Router

Routing, in general, refers to determining how your application responds to a client request. A web browser request wouldn't be directed to your application without some form of routing. Router helps a web server to fetch an appropriate and exact information for the user. It is like a station master at a railway station, who informs the train operator when to change tracks.

The way of swapping views, we just studied, paves the way for routing. The official router for Vue.js is called vue-router. It is deeply integrated with Vue.js core to make building single page applications a breeze. This plugin is relatively easy to understand, install, and use.

The main features are:

  • Nested route/view mapping
  • Modular, component-based router ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required