Check out example codes for "router configuration vue". It will help you in understanding the concepts better.

Code Example 1

npm install --save vue-router

//after installing vue-router in the project
//go inside main.js in your project and add
//(just after Vue.config.productionTip=false):


const routes=[
{path: '/home', component: [componentName]},
{path: '/features', component: [componentName2]},
//you can add  as many routes as you need

//also add:

const router=new VueRouter({
mode: 'history'

//to make the router accesible for all the project you need to add it inside the new Vue:

new Vue({
router,     <----

//to make different pages acoording to the route selected, add (inside app.vue):
   <div id="app">

     <router-view> </router-view>  <----------

Learn ReactJs, React Native from