docs(router) Added @Injectable decorators to Router API examples (#10033)

This commit is contained in:
choeller 2016-07-13 16:27:32 +02:00 committed by Victor Berchet
parent 4ac76ca281
commit a46291b67c
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import {ActivatedRouteSnapshot, RouterStateSnapshot} from './router_state';
* ### Example
*
* ```
* @Injectable()
* class CanActivateTeam implements CanActivate {
* constructor(private permissions: Permissions, private currentUser: UserToken) {}
*
@ -61,6 +62,7 @@ export interface CanActivate {
* ### Example
*
* ```
* @Injectable()
* class CanDeactivateTeam implements CanDeactivate {
* constructor(private permissions: Permissions, private currentUser: UserToken) {}
*
@ -107,6 +109,7 @@ export interface CanDeactivate<T> {
* ### Example
*
* ```
* @Injectable()
* class TeamResolver implements Resolve {
* constructor(private backend: Backend) {}
*