Route
欲知详情,参见 Routes
。
See Routes
for more details.
- interface Route {
- path?: string
- pathMatch?: string
- matcher?: UrlMatcher
- component?: Type<any>
- redirectTo?: string
- outlet?: string
- canActivate?: any[]
- canActivateChild?: any[]
- canDeactivate?: any[]
- canLoad?: any[]
- data?: Data
- resolve?: ResolveData
- children?: Routes
- loadChildren?: LoadChildren
- runGuardsAndResolvers?: RunGuardsAndResolvers
- }
属性
属性 | 说明 |
---|---|
path?: string | |
pathMatch?: string | |
matcher?: UrlMatcher | |
component?: Type<any> | |
redirectTo?: string | |
outlet?: string | |
canActivate?: any[] | |
canActivateChild?: any[] | |
canDeactivate?: any[] | |
canLoad?: any[] | |
data?: Data | |
resolve?: ResolveData | |
children?: Routes | |
loadChildren?: LoadChildren | |
runGuardsAndResolvers?: RunGuardsAndResolvers |