Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 2b1df04

Browse files
shairezwardbell
authored andcommitted
docs(router): fix a typo (#2958)
1 parent 38b22ee commit 2b1df04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/docs/ts/latest/guide/router.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ h3#can-activate-child-guard <i>CanActivateChild</i>: guarding child routes
17891789
Let's extend our `AuthGuard` to protect when navigating between our `admin` routes. First we'll open our
17901790
`auth-guard.service.ts` and add `CanActivateChild` interface to our imported tokens from the router package.
17911791

1792-
Next, we'll implement the `canActivateChild` method with takes the same arguments as the `canActivate` method,
1792+
Next, we'll implement the `canActivateChild` method which takes the same arguments as the `canActivate` method,
17931793
an `ActivatedRouteSnapshot` and `RouterStateSnapshot`. The `canActivateChild` behaves the same way the other
17941794
guards do, returning an `Observable<boolean>` or `Promise<boolean>` for async checks and `boolean` for sync checks.
17951795
We'll return a `boolean`

0 commit comments

Comments
 (0)