Welcome Guest, Not a member yet? Register   Sign In
VueJS and CI4
#1
Sad 

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?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB