We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae68df7 commit df7af21Copy full SHA for df7af21
adev/src/content/guide/routing/common-router-tasks.md
@@ -516,10 +516,11 @@ The following example uses `canActivateFn` to guard the route.
516
517
```ts
518
export const yourGuardFunction: CanActivateFn = (
519
- next: ActivatedRouteSnapshot,
520
- state: RouterStateSnapshot) => {
521
- // your logic goes here
522
- }
+ next: ActivatedRouteSnapshot,
+ state: RouterStateSnapshot
+) => {
+ // your logic goes here
523
+}
524
```
525
526
In your routing module, use the appropriate property in your `routes` configuration.
0 commit comments