But if I use hapi on an already built project, it seems to me that I won’t be able to do much with hapi and still all the routing in the application is actually done with vue-router.
Latest posts made by Credo
-
RE: Using hapi
-
Using hapi
hapi seems a really nice framework to me but I also need something to create components and build the view of my website, so I also need quasar. Is it possible to use hapi with quasar? How?
Thanks -
router-view and routing
Hi
I’m trying to build my first website and I have chosen quasar.
But I don’t seem to understand how quasar’s(or maybe vue’s) routing system works. It seems that I should add my routes to the routing.js file like below:routes: [
{ path: ‘/’, component: load(‘Index’) }, // Default
{ path: ‘/main’, component: load(‘mainLayout’) },
{ path: ‘*’, component: load(‘Error404’) } // Not found
]But this doesn’t work. localhost:8080/main, redirects to http://localhost:8080/main#/ which renders the default view. Actually even the 404 page doesn’t appear if I go to an undefined route and it still gives the default view.
What should I do?
Also, is it correct to say that <router-view></router-view> renders whatever template the routing system tells it to? Does it mean I don’t need to add my components manually to App.vue?
Thanks