From 306354797581113d46ae7a9c121a3ab7205afef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Toledo=20Navarro?= Date: Mon, 4 Mar 2019 14:57:31 +0100 Subject: [PATCH] docs(router): align examples in interfaces docs (#29093) * Use exclusively `TeamComponent` class for examples, as currently there are at least 3 different component classes being used, one of which is actually as a type argument for a `Resolve` implementation. PR Close #29093 --- packages/router/src/interfaces.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/router/src/interfaces.ts b/packages/router/src/interfaces.ts index 1044bdbdc1..03b70b5b3c 100644 --- a/packages/router/src/interfaces.ts +++ b/packages/router/src/interfaces.ts @@ -47,7 +47,7 @@ import {UrlSegment, UrlTree} from './url_tree'; * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * canActivate: [CanActivateTeam] * } * ]) @@ -65,7 +65,7 @@ import {UrlSegment, UrlTree} from './url_tree'; * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * canActivate: ['canActivateTeam'] * } * ]) @@ -128,7 +128,7 @@ export type CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSn * children: [ * { * path: 'team/:id', - * component: Team + * component: TeamComponent * } * ] * } @@ -151,7 +151,7 @@ export type CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSn * children: [ * { * path: 'team/:id', - * component: Team + * component: TeamComponent * } * ] * } @@ -213,7 +213,7 @@ export type CanActivateChildFn = (childRoute: ActivatedRouteSnapshot, state: Rou * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * canDeactivate: [CanDeactivateTeam] * } * ]) @@ -231,7 +231,7 @@ export type CanActivateChildFn = (childRoute: ActivatedRouteSnapshot, state: Rou * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * canDeactivate: ['canDeactivateTeam'] * } * ]) @@ -290,7 +290,7 @@ export type CanDeactivateFn = * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * resolve: { * team: TeamResolver * } @@ -310,7 +310,7 @@ export type CanDeactivateFn = * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * resolve: { * team: 'teamResolver' * } @@ -361,7 +361,7 @@ export interface Resolve { * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * loadChildren: 'team.js', * canLoad: [CanLoadTeamSection] * } @@ -380,7 +380,7 @@ export interface Resolve { * RouterModule.forRoot([ * { * path: 'team/:id', - * component: TeamCmp, + * component: TeamComponent, * loadChildren: 'team.js', * canLoad: ['canLoadTeamSection'] * }