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<T>` implementation.
PR Close #29093
This commit is contained in:
José Toledo Navarro 2019-03-04 14:57:31 +01:00 committed by Andrew Kushnir
parent 72ecc45363
commit 3063547975
1 changed files with 10 additions and 10 deletions

View File

@ -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<T> =
* RouterModule.forRoot([
* {
* path: 'team/:id',
* component: TeamCmp,
* component: TeamComponent,
* resolve: {
* team: TeamResolver
* }
@ -310,7 +310,7 @@ export type CanDeactivateFn<T> =
* RouterModule.forRoot([
* {
* path: 'team/:id',
* component: TeamCmp,
* component: TeamComponent,
* resolve: {
* team: 'teamResolver'
* }
@ -361,7 +361,7 @@ export interface Resolve<T> {
* RouterModule.forRoot([
* {
* path: 'team/:id',
* component: TeamCmp,
* component: TeamComponent,
* loadChildren: 'team.js',
* canLoad: [CanLoadTeamSection]
* }
@ -380,7 +380,7 @@ export interface Resolve<T> {
* RouterModule.forRoot([
* {
* path: 'team/:id',
* component: TeamCmp,
* component: TeamComponent,
* loadChildren: 'team.js',
* canLoad: ['canLoadTeamSection']
* }