fix tabs readme

This commit is contained in:
Alexandre Chopin 2016-12-13 11:08:23 +01:00
parent 044a4bfb55
commit 14543bc327

View File

@ -110,16 +110,16 @@ will automatically generate:
router: { router: {
routes: [ routes: [
{ {
path: '/users', path: '/users',
component: 'pages/users', component: 'pages/users',
children: [ children: [
{ {
path: ':id', path: ':id',
component: 'pages/users/_id', component: 'pages/users/_id',
name: 'users-id' name: 'users-id'
} }
] ]
} }
] ]
} }
``` ```
@ -145,32 +145,32 @@ will automatically generate:
router: { router: {
routes: [ routes: [
{ {
path: '/posts', path: '/posts',
component: 'pages/posts', component: 'pages/posts',
children: [ children: [
{ {
path: "", path: "",
component: 'pages/posts/index', component: 'pages/posts/index',
name: 'posts' name: 'posts'
}, },
{ {
path: ':slug', path: ':slug',
component: 'pages/posts/_slug', component: 'pages/posts/_slug',
children: [ children: [
{ {
path: 'comments', path: 'comments',
component: 'pages/posts/_slug/comments', component: 'pages/posts/_slug/comments',
name: 'posts-slug-comments' name: 'posts-slug-comments'
}, },
{ {
path: ':name', path: ':name',
component: 'pages/posts/_slug/_name', component: 'pages/posts/_slug/_name',
name: 'posts-slug-name' name: 'posts-slug-name'
} }
] ]
} }
] ]
} }
] ]
} }
``` ```