I'm using Vueify and cannot get the router to work in my components. I've brought in Vue-router with npm. Registering it with
var VueRouter = require('vue-router');
var router = new VueRouter();
I wanted to use it within a vue-resource method as above and I keep getting router not defined. What am I doing wrong? Thanks
For ones like me who want to address this on routing based on the URL, see also https://router.vuejs.org/en/essentials/redirect-and-alias.html as you can say maybe if the user goes to /home on Spark for example, you want to redirect him to /dashboard (this was my personal case).