mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
update readme
This commit is contained in:
parent
e1b5846899
commit
044a4bfb55
@ -77,6 +77,7 @@ router: {
|
|||||||
### Additional feature : validate (optional)
|
### Additional feature : validate (optional)
|
||||||
|
|
||||||
Nuxt.js allows you to define a validator function inside your dynamic route component (In this example: `pages/projects/_slug.vue`).
|
Nuxt.js allows you to define a validator function inside your dynamic route component (In this example: `pages/projects/_slug.vue`).
|
||||||
|
|
||||||
If validate function fails, Nuxt.js will automatically load the 404 error page.
|
If validate function fails, Nuxt.js will automatically load the 404 error page.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -92,7 +93,7 @@ export default {
|
|||||||
## Nested Routes (children)
|
## Nested Routes (children)
|
||||||
|
|
||||||
To define a nested route, you need to define a .vue file with the same name as the directory wich contain your children views.
|
To define a nested route, you need to define a .vue file with the same name as the directory wich contain your children views.
|
||||||
> Don't forget to put <router-view></router-view> inside your parent .vue file.
|
> Don't forget to put `<router-view></router-view>` inside your parent .vue file.
|
||||||
|
|
||||||
This file tree:
|
This file tree:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user