From 2b1df0487dbd2f61903946ec545fe320056b5841 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Tue, 13 Dec 2016 07:57:19 +0200 Subject: [PATCH] docs(router): fix a typo (#2958) --- public/docs/ts/latest/guide/router.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/docs/ts/latest/guide/router.jade b/public/docs/ts/latest/guide/router.jade index 7b6842ba70..3750f42ae7 100644 --- a/public/docs/ts/latest/guide/router.jade +++ b/public/docs/ts/latest/guide/router.jade @@ -1789,7 +1789,7 @@ h3#can-activate-child-guard CanActivateChild: guarding child routes Let's extend our `AuthGuard` to protect when navigating between our `admin` routes. First we'll open our `auth-guard.service.ts` and add `CanActivateChild` interface to our imported tokens from the router package. - Next, we'll implement the `canActivateChild` method with takes the same arguments as the `canActivate` method, + Next, we'll implement the `canActivateChild` method which takes the same arguments as the `canActivate` method, an `ActivatedRouteSnapshot` and `RouterStateSnapshot`. The `canActivateChild` behaves the same way the other guards do, returning an `Observable` or `Promise` for async checks and `boolean` for sync checks. We'll return a `boolean`