This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -956,17 +956,17 @@ respectively.
956
956
957
957
**How do I prevent navigation from occurring?**
958
958
959
- Each **Component** can provide the `$routerCanActivate ` and `$routerCanDeactivate` **Lifecycle Hooks**. The
960
- `$routerCanDeactivate` hook is an instance method on the **Component**. The `$routerCanActivate ` hook is a
961
- static method defined on either the **Component Definition Object** or the **Component's** constructor function .
959
+ Each **Component** can provide the `$canActivate ` and `$routerCanDeactivate` **Lifecycle Hooks**. The
960
+ `$routerCanDeactivate` hook is an instance method on the **Component**. The `$canActivate ` hook is used as a
961
+ static method defined on the **Component Definition Object**.
962
962
963
963
The **Router** will call these hooks to control navigation from one **Route** to another. Each of these hooks can
964
964
return a `boolean` or a Promise that will resolve to a `boolean`.
965
965
966
966
During a navigation, some **Components** will become inactive and some will become active. Before the navigation
967
967
can complete, all the **Components** must agree that they can be deactivated or activated, respectively.
968
968
969
- The **Router** will call the `$routerCanDeactivate` and `$routerCanActivate ` hooks, if they are provided. If any
969
+ The **Router** will call the `$routerCanDeactivate` and `$canActivate ` hooks, if they are provided. If any
970
970
of the hooks resolve to `false` then the navigation is cancelled.
971
971
972
972
### Dialog Box Service
You can’t perform that action at this time.
0 commit comments