Vue.js: Routing With Vue-Router

Help your users get to where they’re going

Image courtesy: Vue.js

If you are working with Vue.js and SPA you are going to end up using vue-router sooner or later to deal with the navigation of your app.

Why vue-router? Well, from my point of view, the answer is easy: vue-router is officially supported by the Vue.js team with all the benefits that come with that (support, documentation, simplicity, among others).

In their own words:

“Creating a single-page application with Vue + Vue-Router is dead-simple.

In this blog, we are going to go through some of the most important things to take into consideration when working with vue-router, trying to explain them as clearly as possible, but we are not going to tackle everything… for more information, go to the vue-router documentation.

So, let’s start.