Routing/Navigation
Embryo is compatible with parameter routing and lazy Loading. There are followings steps:
// pages
const HomeV1 = () => import('./views/HomeV1');
const Accesory = () => import('./views/Accesory');
const Gadget = () => import('./views/Gadget');export default new Router({
routes: [
{
path: '/',
component: HomeV1
},
{
path: '/accesory',
component: Accesory
},
{
path: '/gadget',
component: Gadget
}
]
})Last updated
Was this helpful?