You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This`source` argument is type safe, expecting either a [`Url`](/api/types/Url)or a valid route [`name`](/api/types/Route#name). URL is any string that starts with "http", "https", or a forward slash "/". Additionally if using the route name, push will require params be passed in if there are any.
113
+
The`source` argument is type safe, expecting either a URL string or a valid route name. URLs are strings that start with "http", "https", or a forward slash "/". When using route names, push will require params if the route has any.
114
114
115
115
## Update
116
116
@@ -133,13 +133,14 @@ router.route.update({
133
133
134
134
Give your route components a place to be mounted
135
135
136
-
```html {4-5}
136
+
```html
137
137
<!-- App.vue -->
138
-
<divclass="app">
139
-
...
140
-
<!-- matched route.component gets rendered here -->
141
-
<router-view />
142
-
</div>
138
+
<template>
139
+
<divclass="app">
140
+
<!-- matched route.component gets rendered here -->
141
+
<router-view />
142
+
</div>
143
+
</template>
143
144
```
144
145
145
146
This component can be mounted anywhere you want route components to be mounted. Nested routes can also have a nested `RouterView` which would be responsible for rendering any children that route may have. Read more about [nested routes](https://kitbag-router.netlify.app/core-concepts/defining-routes#nested-routes).
@@ -148,11 +149,10 @@ This component can be mounted anywhere you want route components to be mounted.
0 commit comments