feat(router): export decorator version of RouteConfig
This commit is contained in:
parent
1864f60afb
commit
75da6e4c4a
|
@ -10,7 +10,7 @@ export {Router} from './src/router/router';
|
|||
export {RouterOutlet} from './src/router/router_outlet';
|
||||
export {RouterLink} from './src/router/router_link';
|
||||
export {RouteParams} from './src/router/instruction';
|
||||
export {RouteConfig} from './src/router/route_config';
|
||||
export {RouteConfig} from './src/router/route_config_annotation';
|
||||
|
||||
import {Router, RootRouter} from './src/router/router';
|
||||
import {RouteRegistry} from './src/router/route_registry';
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
library angular2.router.route_config_annotations;
|
||||
|
||||
export './route_config_impl.dart';
|
|
@ -0,0 +1,5 @@
|
|||
export {RouteConfig as RouteConfigAnnotation} from './route_config_impl';
|
||||
|
||||
import {makeDecorator} from 'angular2/src/util/decorators';
|
||||
|
||||
export var RouteConfig = makeDecorator(RouteConfig);
|
|
@ -2,7 +2,7 @@ import {RouteRecognizer} from './route_recognizer';
|
|||
import {Instruction, noopInstruction} from './instruction';
|
||||
import {List, ListWrapper, Map, MapWrapper, StringMap, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {isPresent, isBlank, isType, StringWrapper, BaseException} from 'angular2/src/facade/lang';
|
||||
import {RouteConfig} from './route_config';
|
||||
import {RouteConfig} from './route_config_impl';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
|
||||
export class RouteRegistry {
|
||||
|
|
|
@ -21,7 +21,8 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
|||
|
||||
import {RootRouter} from 'angular2/src/router/router';
|
||||
import {Pipeline} from 'angular2/src/router/pipeline';
|
||||
import {Router, RouterOutlet, RouterLink, RouteConfig, RouteParams} from 'angular2/router';
|
||||
import {Router, RouterOutlet, RouterLink, RouteParams} from 'angular2/router';
|
||||
import {RouteConfig} from 'angular2/src/router/route_config_impl';
|
||||
|
||||
import {DOM} from 'angular2/src/dom/dom_adapter';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
SpyObject} from 'angular2/test_lib';
|
||||
|
||||
import {RouteRegistry} from 'angular2/src/router/route_registry';
|
||||
import {RouteConfig} from 'angular2/src/router/route_config';
|
||||
import {RouteConfig} from 'angular2/src/router/route_config_impl';
|
||||
|
||||
export function main() {
|
||||
describe('RouteRegistry', () => {
|
||||
|
|
Loading…
Reference in New Issue