Please enable JavaScript.
Coggle requires JavaScript to display documents.
Vue-route - Coggle Diagram
Vue-route
-
{path: '/user/:id', component: User}
-
-
-
router.go(n) ## n is interger, move to next of back to previous
-
-
-
-
children : [ { path: 'profile', component: UserProfile } ]
routes: [ {path: "/user/:id", component: user, children: [same as above]} ]
redirect
{path: "/a", redirect: "/b"}
-
-
-
-
alias
{path: '/a', component: 'A', alias: '/b'}
when user visit '/a', it is visit '/b' too
-
Global
router.beforeEach(to, from, next)
router.afterEach(to, from)