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`
This commit is contained in:
Brian Ford 2015-09-21 19:58:45 -07:00
parent af2cd4d6f3
commit 41b019f5f8
3 changed files with 5 additions and 5 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';