2015-04-17 09:59:56 -07:00
|
|
|
import {CONST} from 'angular2/src/facade/lang';
|
2015-05-01 05:53:38 -07:00
|
|
|
import {List, Map} from 'angular2/src/facade/collection';
|
2015-04-17 09:59:56 -07:00
|
|
|
|
|
|
|
/**
|
2015-05-01 05:53:38 -07:00
|
|
|
* You use the RouteConfig annotation to add routes to a component.
|
|
|
|
*
|
|
|
|
* Supported keys:
|
|
|
|
* - `path` (required)
|
2015-05-21 13:59:14 -07:00
|
|
|
* - `component`, `redirectTo` (requires exactly one of these)
|
2015-05-01 05:53:38 -07:00
|
|
|
* - `as` (optional)
|
2015-04-17 09:59:56 -07:00
|
|
|
*/
|
2015-05-29 14:58:41 -07:00
|
|
|
@CONST()
|
2015-04-17 09:59:56 -07:00
|
|
|
export class RouteConfig {
|
2015-05-29 14:58:41 -07:00
|
|
|
constructor(public configs: List<Map<any, any>>) {}
|
2015-04-17 09:59:56 -07:00
|
|
|
}
|