feat(router): add interfaces for route definitions in RouteConfig
Closes #2261
This commit is contained in:
15
modules/angular2/src/router/route_definition.ts
Normal file
15
modules/angular2/src/router/route_definition.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import {CONST, Type} from 'angular2/src/facade/lang';
|
||||
|
||||
export interface RouteDefinition {
|
||||
path: string;
|
||||
component?: Type | ComponentDefinition;
|
||||
loader?: Function;
|
||||
redirectTo?: string;
|
||||
as?: string;
|
||||
}
|
||||
|
||||
export interface ComponentDefinition {
|
||||
type: string;
|
||||
loader?: Function;
|
||||
component?: Type;
|
||||
}
|
Reference in New Issue
Block a user