It's hard for me understanding the routes...
This is my app.js
Code:
const Inicio = {
template: "#inicio",
};
const Disabled = {
template: "#disabled",
};
const router = new VueRouter({
mode: 'history',
routes: [
{
path: "/",
component: Inicio,
},
{
path: "/disabled",
component: Disabled,
},
],
});
var app = new Vue({
el: "#app",
router,
});
but when I go to localhost the index is empty if history mode is active... how I can solve this?