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
Vue-router supports matching paths that contain dynamic segments, star segments and query strings. All these information of a parsed route will be accessible on the exposed **Route Context Objects** (we will just call them "route" objects from now on). The route object will be injected into every component in a vue-router-enabled app as `this.$route`, and will be updated whenever a route transition is performed.
@@ -31,13 +31,13 @@ You can directly bind to the `$route` object inside your component templates. Fo
31
31
</div>
32
32
```
33
33
34
-
### Route Matching
34
+
### Route マッチング
35
35
36
-
#### Dynamic Segments
36
+
#### 動的セグメント
37
37
38
-
Dynamic segments can be defined in the form of path segments with a leading colon, e.g. in `user/:username`, `:username`is the dynamic segment. It will match paths like `/user/foo`or`/user/bar`. When a path containing a dynamic segment is matched, the dynamic segments will be available inside `$route.params`.
While dynamic segments can correspond to only a single segment in a path, star segments is basically the "greedy" version of it. For example `/foo/*bar`will match anything that starts with `/foo/`. The part matched by the star segment will also be available in `$route.params`.
0 commit comments