Embryo Vuejs
  • Introduction
  • Folder structure
  • Installation
  • Translate App
  • Custom Component
  • Style Customization
  • Routing/Navigation
  • Rtl
  • Credits
  • Faq (Frequently Asked Questions)
  • Still problem?
Powered by GitBook
On this page

Was this helpful?

Routing/Navigation

Embryo is compatible with parameter routing and lazy Loading. There are followings steps:

If You want to set the path for the desired page , simply follow the following steps:-

Go to src > router.js and the path as :-

1- Firstly set the instance that you are going to use in setting the path as:-

router.js
// pages
const HomeV1 = () => import('./views/HomeV1');
const Accesory = () => import('./views/Accesory');
const Gadget = () => import('./views/Gadget');

2- Then lastly set the path

export default new Router({
	routes: [
		{ 
			path: '/',               
			component: HomeV1 
		},
		{
			path: '/accesory',       
			component: Accesory 
		},
		{ 
			path: '/gadget',         
			component: Gadget 
		}
	]
})

PreviousStyle CustomizationNextRtl

Last updated 6 years ago

Was this helpful?