mapToCanActivateChild converts a class-based child-route guard into a value assigned to a route’s canActivateChild property. Angular calls the class’s canActivateChild method before activating any child route. section 26.2.2
Apply a class guard to child routes
Import mapToCanActivateChild and assign the generated guard to the parent route: canActivateChild: mapToCanActivateChild([TermsGuard]). The guard can receive ActivatedRouteSnapshot and RouterStateSnapshot objects, use dependency injection, and return a supported synchronous or asynchronous result. section 26.2.2
