Skip to content

Commit df7af21

Browse files
langxyzxyzjosephperrott
authored andcommitted
docs: update example code formatting (angular#59242)
PR Close angular#59242
1 parent ae68df7 commit df7af21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

adev/src/content/guide/routing/common-router-tasks.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,11 @@ The following example uses `canActivateFn` to guard the route.
516516

517517
```ts
518518
export const yourGuardFunction: CanActivateFn = (
519-
next: ActivatedRouteSnapshot,
520-
state: RouterStateSnapshot) => {
521-
// your logic goes here
522-
}
519+
next: ActivatedRouteSnapshot,
520+
state: RouterStateSnapshot
521+
) => {
522+
// your logic goes here
523+
}
523524
```
524525

525526
In your routing module, use the appropriate property in your `routes` configuration.

0 commit comments

Comments
 (0)