-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -327,7 +327,7 @@ import type { RouterTyped } from '@vue-router' | |
|
||
## Named views | ||
|
||
It is possible to define [named views](https://router.vuejs.org/guide/essentials/named-views.html#named-views) by appending an `@` + a named to their filename, e.g. a file named `src/routes/[email protected]` will generate a route of: | ||
It is possible to define [named views](https://router.vuejs.org/guide/essentials/named-views.html#named-views) by appending an `@` + a name to their filename, e.g. a file named `src/routes/[email protected]` will generate a route of: | ||
|
||
```js | ||
{ | ||
|
@@ -338,7 +338,7 @@ It is possible to define [named views](https://router.vuejs.org/guide/essentials | |
} | ||
``` | ||
|
||
Note that by default a non named route | ||
Note that by default a non named route is named `default` and that you don't need to name your file `[email protected]` even if there are other named views (e.g. having `[email protected]` and `index.vue` is the same as having `[email protected]` and `[email protected]`). | ||
|
||
## Extending existing routes | ||
|
||
|