Skip to content

Commit 13086a5

Browse files
committed
translate api/map.md
1 parent 8acd6a4 commit 13086a5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/ja/api/map.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# `router.map(routeMap)`
22

3-
The main method to define route mappings for the router.
3+
主に、ルーターに対して route マッピングを定義するメソッドです。
44

5-
### Arguments
5+
### 引数
66

77
- `routeMap: Object`
88

9-
An object whose keys are paths and values are route config objects. For path matching rules, see [Route Matching](../route.html#route-matching).
9+
キーはパスで、値は route 設定オブジェクトです。パスのマッチングルールは、[Route マッチング](../route.html#route-matching)を参照してください。
1010

11-
### Route Config Object
11+
### Route 設定オブジェクト
1212

13-
A route config object can contain two fields:
13+
route 設定オブジェクトは2つのフィールドを含むことができます:
1414

15-
- `component`: The Vue component to render into the top-level `<router-view>` outlet when this path is matched. The value could either be a constructor returned by calling `Vue.extend`, or a plain component options object. In the latter case the router will implicitly call `Vue.extend` for you.
15+
- `component`: パスがマッチされるときにトップレベルの `<router-view>` outlet にレンダリングする Vue コンポーネント。値は `Vue.extend` の呼び出しによって返されたコンストラクタ、または純粋なコンポーネントオプションオブジェクトのいずれか可能です。後者の場合はルーターが暗黙的に `Vue.extend` を呼び出します。
1616

17-
- `subRoutes`: You can nest another sub route-map here. For each sub path in the `routeRoutes` map, the router will match it against the full path by appending it to the parent path. The matched component will be rendered into the parent route component's `<router-view>` outlet.
17+
- `subRoutes`: ここには他のサブ route マップをネストすることができます。`routeRoutes` マップ内の各サブパスついて、ルーターは親パスを追加することによって完全なパスに対してマッチします。マッチしたコンポーネントは親の route コンポーネントの `<router-view>` outlet にレンダリングされます。
1818

19-
### Example
19+
###
2020

2121
``` js
2222
router.map({
23-
// component constructor
23+
// コンポーネントコンストラクタ
2424
'/a': {
2525
component: Vue.extend({ /* ... */ })
2626
},
27-
// plain component options object
27+
// 純粋なコンポーネントオプションオブジェクト
2828
'/b': {
2929
component: {
3030
template: '<p>Hello from /b</p>'
@@ -33,13 +33,13 @@ router.map({
3333
// nested routes
3434
'/c': {
3535
component: {
36-
// simply render the child view
36+
// 単純に子の view をレンダリング
3737
template: '<router-view></router-view>'
3838
},
3939
subRoutes: {
40-
// rendered when the path is /c/d
40+
// パスが /c/d であるときにレンダリング
4141
'/d': { component: { template: 'D' }},
42-
// rendered when the path is /c/e
42+
// パスが /c/e であるときにレンダリング
4343
'/e': { component: { template: 'E' }}
4444
}
4545
}

0 commit comments

Comments
 (0)