File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# ` canActivate(transition) [-> Promise | Boolean] `
2
2
3
- Called on an incoming component during the validation phase.
3
+ 検証フェーズの間に入ってくるコンポーネントに呼び出されます。
4
4
5
- ### Arguments
5
+ ### 引数
6
6
7
7
- [ ` transition {Transition} ` ] ( hooks.md#transition-object )
8
8
9
- Call ` transition.next() ` to resolve the hook. Calling ` transition.abort() ` will invalidate and cancel the transition.
9
+ フックを解決するために、 ` transition.next() ` を呼び出します。 ` transition.abort() ` を呼び出すと、無効とトランジションをキャンセルします。
10
10
11
- ### Return Value
11
+ ### 戻り値
12
12
13
- - Optionally return a Promise:
13
+ - 任意で Promise を返します。
14
14
15
15
- ` resolve(true) ` -> ` transition.next() `
16
16
- ` resolve(false) ` -> ` transition.abort() `
17
17
- ` reject(reason) ` -> ` transition.abort(reason) `
18
18
19
- - Optionally return a Boolean:
19
+ - 任意で Boolean を返します。
20
20
21
21
- ` true ` -> ` transition.next() `
22
22
- ` false ` -> ` transition.abort() `
23
23
24
- ### Details
24
+ ### 詳細
25
25
26
- This hook is called top-down. A child view's ` canActivate ` will only get called when its parent view's ` canActivate ` has been resolved.
26
+ このフックはトップダウンで呼ばれます。子の view の ` canActivate ` は親の view の ` canActivate ` が解決された時にのみ呼び出されます。
You can’t perform that action at this time.
0 commit comments