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:
parent
72ecc45363
commit
3063547975
|
@ -47,7 +47,7 @@ import {UrlSegment, UrlTree} from './url_tree';
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* canActivate: [CanActivateTeam]
|
* canActivate: [CanActivateTeam]
|
||||||
* }
|
* }
|
||||||
* ])
|
* ])
|
||||||
|
@ -65,7 +65,7 @@ import {UrlSegment, UrlTree} from './url_tree';
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* canActivate: ['canActivateTeam']
|
* canActivate: ['canActivateTeam']
|
||||||
* }
|
* }
|
||||||
* ])
|
* ])
|
||||||
|
@ -128,7 +128,7 @@ export type CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSn
|
||||||
* children: [
|
* children: [
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: Team
|
* component: TeamComponent
|
||||||
* }
|
* }
|
||||||
* ]
|
* ]
|
||||||
* }
|
* }
|
||||||
|
@ -151,7 +151,7 @@ export type CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSn
|
||||||
* children: [
|
* children: [
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: Team
|
* component: TeamComponent
|
||||||
* }
|
* }
|
||||||
* ]
|
* ]
|
||||||
* }
|
* }
|
||||||
|
@ -213,7 +213,7 @@ export type CanActivateChildFn = (childRoute: ActivatedRouteSnapshot, state: Rou
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* canDeactivate: [CanDeactivateTeam]
|
* canDeactivate: [CanDeactivateTeam]
|
||||||
* }
|
* }
|
||||||
* ])
|
* ])
|
||||||
|
@ -231,7 +231,7 @@ export type CanActivateChildFn = (childRoute: ActivatedRouteSnapshot, state: Rou
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* canDeactivate: ['canDeactivateTeam']
|
* canDeactivate: ['canDeactivateTeam']
|
||||||
* }
|
* }
|
||||||
* ])
|
* ])
|
||||||
|
@ -290,7 +290,7 @@ export type CanDeactivateFn<T> =
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* resolve: {
|
* resolve: {
|
||||||
* team: TeamResolver
|
* team: TeamResolver
|
||||||
* }
|
* }
|
||||||
|
@ -310,7 +310,7 @@ export type CanDeactivateFn<T> =
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* resolve: {
|
* resolve: {
|
||||||
* team: 'teamResolver'
|
* team: 'teamResolver'
|
||||||
* }
|
* }
|
||||||
|
@ -361,7 +361,7 @@ export interface Resolve<T> {
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* loadChildren: 'team.js',
|
* loadChildren: 'team.js',
|
||||||
* canLoad: [CanLoadTeamSection]
|
* canLoad: [CanLoadTeamSection]
|
||||||
* }
|
* }
|
||||||
|
@ -380,7 +380,7 @@ export interface Resolve<T> {
|
||||||
* RouterModule.forRoot([
|
* RouterModule.forRoot([
|
||||||
* {
|
* {
|
||||||
* path: 'team/:id',
|
* path: 'team/:id',
|
||||||
* component: TeamCmp,
|
* component: TeamComponent,
|
||||||
* loadChildren: 'team.js',
|
* loadChildren: 'team.js',
|
||||||
* canLoad: ['canLoadTeamSection']
|
* canLoad: ['canLoadTeamSection']
|
||||||
* }
|
* }
|
||||||
|
|
Loading…
Reference in New Issue