mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
docs: update pages to explain catchall pattern (#789)
This commit is contained in:
parent
f69289c5cd
commit
926062db3d
@ -14,6 +14,8 @@ Nuxt will automatically integrate [Vue Router](https://next.router.vuejs.org/) a
|
||||
|
||||
If you place anything within square brackets, it will be turned into a [dynamic route](https://next.router.vuejs.org/guide/essentials/dynamic-matching.html) parameter. You can mix and match multiple parameters and even non-dynamic text within a file name or directory.
|
||||
|
||||
If you need a catch-all route, you create it by using a file named like `[...slug].vue`. This will match _all_ routes under that path, and thus it doesn't support any non-dynamic text.
|
||||
|
||||
### Example
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user