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:
parent
af2cd4d6f3
commit
41b019f5f8
|
@ -4,7 +4,7 @@
|
||||||
* Maps application URLs into application states, to support deep-linking and navigation.
|
* 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 {RouterOutlet} from './src/router/router_outlet';
|
||||||
export {RouterLink} from './src/router/router_link';
|
export {RouterLink} from './src/router/router_link';
|
||||||
export {RouteParams} from './src/router/instruction';
|
export {RouteParams} from './src/router/instruction';
|
||||||
|
|
|
@ -26,7 +26,6 @@ import {SpyLocation} from 'angular2/src/mock/location_mock';
|
||||||
import {
|
import {
|
||||||
Location,
|
Location,
|
||||||
Router,
|
Router,
|
||||||
RootRouter,
|
|
||||||
RouteRegistry,
|
RouteRegistry,
|
||||||
RouterLink,
|
RouterLink,
|
||||||
RouterOutlet,
|
RouterOutlet,
|
||||||
|
@ -36,6 +35,7 @@ import {
|
||||||
RouteConfig,
|
RouteConfig,
|
||||||
ROUTER_DIRECTIVES
|
ROUTER_DIRECTIVES
|
||||||
} from 'angular2/router';
|
} from 'angular2/router';
|
||||||
|
import {RootRouter} from 'angular2/src/router/router';
|
||||||
|
|
||||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||||
|
|
||||||
|
|
|
@ -22,14 +22,14 @@ import {By} from 'angular2/src/core/debug';
|
||||||
import {
|
import {
|
||||||
Location,
|
Location,
|
||||||
Router,
|
Router,
|
||||||
RootRouter,
|
|
||||||
RouteRegistry,
|
RouteRegistry,
|
||||||
RouterLink,
|
RouterLink,
|
||||||
RouterOutlet,
|
RouterOutlet,
|
||||||
Route,
|
Route,
|
||||||
RouteParams
|
RouteParams,
|
||||||
|
Instruction,
|
||||||
|
ComponentInstruction
|
||||||
} from 'angular2/router';
|
} from 'angular2/router';
|
||||||
import {Instruction, ComponentInstruction} from 'angular2/src/router/instruction';
|
|
||||||
|
|
||||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue