File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -956,17 +956,17 @@ respectively.
956956
957957**How do I prevent navigation from occurring?**
958958
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**.
962962
963963The **Router** will call these hooks to control navigation from one **Route** to another. Each of these hooks can
964964return a `boolean` or a Promise that will resolve to a `boolean`.
965965
966966During a navigation, some **Components** will become inactive and some will become active. Before the navigation
967967can complete, all the **Components** must agree that they can be deactivated or activated, respectively.
968968
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
970970of the hooks resolve to `false` then the navigation is cancelled.
971971
972972### Dialog Box Service
You can’t perform that action at this time.
0 commit comments