From 41b019f5f8894e4f553ecfc2b851179512fc2b2c Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Mon, 21 Sep 2015 19:58:45 -0700 Subject: [PATCH] refactor(router): do not export RootRouter BREAKING CHANGE: It's unlikely that any apps were explicitly referencing `RootRouter`, but if they were they should prefer to use the `routerBindings` helper or the `ROUTER_BINDINGS` const exported from `angular2/router` --- modules/angular2/router.ts | 2 +- .../angular2/test/router/integration/router_link_spec.ts | 2 +- modules/angular2/test/router/router_link_spec.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/angular2/router.ts b/modules/angular2/router.ts index 19a2913e3a..f441122234 100644 --- a/modules/angular2/router.ts +++ b/modules/angular2/router.ts @@ -4,7 +4,7 @@ * Maps application URLs into application states, to support deep-linking and navigation. */ -export {Router, RootRouter} from './src/router/router'; +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'; diff --git a/modules/angular2/test/router/integration/router_link_spec.ts b/modules/angular2/test/router/integration/router_link_spec.ts index bdab016b25..fc1bb7bbb3 100644 --- a/modules/angular2/test/router/integration/router_link_spec.ts +++ b/modules/angular2/test/router/integration/router_link_spec.ts @@ -26,7 +26,6 @@ import {SpyLocation} from 'angular2/src/mock/location_mock'; import { Location, Router, - RootRouter, RouteRegistry, RouterLink, RouterOutlet, @@ -36,6 +35,7 @@ import { RouteConfig, ROUTER_DIRECTIVES } from 'angular2/router'; +import {RootRouter} from 'angular2/src/router/router'; import {DOM} from 'angular2/src/core/dom/dom_adapter'; diff --git a/modules/angular2/test/router/router_link_spec.ts b/modules/angular2/test/router/router_link_spec.ts index 24d3f00421..83bc1d99f2 100644 --- a/modules/angular2/test/router/router_link_spec.ts +++ b/modules/angular2/test/router/router_link_spec.ts @@ -22,14 +22,14 @@ import {By} from 'angular2/src/core/debug'; import { Location, Router, - RootRouter, RouteRegistry, RouterLink, RouterOutlet, Route, - RouteParams + RouteParams, + Instruction, + ComponentInstruction } from 'angular2/router'; -import {Instruction, ComponentInstruction} from 'angular2/src/router/instruction'; import {DOM} from 'angular2/src/core/dom/dom_adapter';