I have a app.js with a router, see below. Now a have a laravel package with a package.json with also an router. But 2 routes gives problems :)
So is it possible to append the route from package.js to app.js routes? So the code stays seperated?
Sometinh like this, not working/good code, but to explain :)
router .={
routes: [
{
path: '/testtest',
name: 'App',
component: AppTesttest
}
]
}
App.js
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/test/banners',
name: 'banners',
component: AppBanners,
},
],
});
Package.js
const routerPasaanvraag = new VueRouter({
mode: 'history',
routes: [
{
path: '/testtest',
name: 'App',
component: AppTesttest
}
]
})
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Njll8a
via IFTTT
Aucun commentaire:
Enregistrer un commentaire