@@ -23,11 +23,11 @@ import {RouteConfig, Route, Redirect} from 'angular2/src/router/route_config_dec
2323import  { PromiseWrapper }  from  'angular2/src/facade/async' ; 
2424import  { BaseException }  from  'angular2/src/facade/lang' ; 
2525import  { 
26-  routerInjectables , 
26+  ROUTER_BINDINGS , 
2727 RouteParams , 
2828 Router , 
2929 APP_BASE_HREF , 
30-  routerDirectives , 
30+  ROUTER_DIRECTIVES , 
3131 HashLocationStrategy 
3232}  from  'angular2/router' ; 
3333
@@ -37,9 +37,8 @@ import {APP_COMPONENT} from 'angular2/src/core/application_tokens';
3737
3838export  function  main ( )  { 
3939 describe ( 'router injectables' ,  ( )  =>  { 
40-  beforeEachBindings ( ( )  =>  { 
41-  return  [ routerInjectables ,  bind ( LocationStrategy ) . toClass ( MockLocationStrategy ) ] ; 
42-  } ) ; 
40+  beforeEachBindings ( 
41+  ( )  =>  {  return  [ ROUTER_BINDINGS ,  bind ( LocationStrategy ) . toClass ( MockLocationStrategy ) ] ;  } ) ; 
4342
4443 // do not refactor out the `bootstrap` functionality. We still want to 
4544 // keep this test around so we can ensure that bootstrapping a router works 
@@ -51,7 +50,7 @@ export function main() {
5150
5251 bootstrap ( AppCmp , 
5352 [ 
54-  routerInjectables , 
53+  ROUTER_BINDINGS , 
5554 bind ( LocationStrategy ) . toClass ( MockLocationStrategy ) , 
5655 bind ( DOCUMENT ) . toValue ( fakeDoc ) 
5756 ] ) 
@@ -210,26 +209,26 @@ class Hello2Cmp {
210209} 
211210
212211@Component ( { selector : 'app-cmp' } ) 
213- @View ( { template : "outer { <router-outlet></router-outlet> }" ,  directives : routerDirectives } ) 
212+ @View ( { template : "outer { <router-outlet></router-outlet> }" ,  directives : ROUTER_DIRECTIVES } ) 
214213@RouteConfig ( [ new  Route ( { path : '/' ,  component : HelloCmp } ) ] ) 
215214class  AppCmp  { 
216215 constructor ( public  router : Router ,  public  location : LocationStrategy )  { } 
217216} 
218217
219218@Component ( { selector : 'parent-cmp' } ) 
220- @View ( { template : `parent { <router-outlet></router-outlet> }` ,  directives : routerDirectives } ) 
219+ @View ( { template : `parent { <router-outlet></router-outlet> }` ,  directives : ROUTER_DIRECTIVES } ) 
221220@RouteConfig ( [ new  Route ( { path : '/child' ,  component : HelloCmp } ) ] ) 
222221class  ParentCmp  { 
223222} 
224223
225224@Component ( { selector : 'super-parent-cmp' } ) 
226- @View ( { template : `super-parent { <router-outlet></router-outlet> }` ,  directives : routerDirectives } ) 
225+ @View ( { template : `super-parent { <router-outlet></router-outlet> }` ,  directives : ROUTER_DIRECTIVES } ) 
227226@RouteConfig ( [ new  Route ( { path : '/child' ,  component : Hello2Cmp } ) ] ) 
228227class  SuperParentCmp  { 
229228} 
230229
231230@Component ( { selector : 'app-cmp' } ) 
232- @View ( { template : `root { <router-outlet></router-outlet> }` ,  directives : routerDirectives } ) 
231+ @View ( { template : `root { <router-outlet></router-outlet> }` ,  directives : ROUTER_DIRECTIVES } ) 
233232@RouteConfig ( [ 
234233 new  Route ( { path : '/parent/...' ,  component : ParentCmp } ) , 
235234 new  Route ( { path : '/super-parent/...' ,  component : SuperParentCmp } ) 
@@ -246,7 +245,7 @@ class QSCmp {
246245} 
247246
248247@Component ( { selector : 'app-cmp' } ) 
249- @View ( { template : `<router-outlet></router-outlet>` ,  directives : routerDirectives } ) 
248+ @View ( { template : `<router-outlet></router-outlet>` ,  directives : ROUTER_DIRECTIVES } ) 
250249@RouteConfig ( [ new  Route ( { path : '/qs' ,  component : QSCmp } ) ] ) 
251250class  QueryStringAppCmp  { 
252251 constructor ( public  router : Router ,  public  location : LocationStrategy )  { } 
@@ -259,7 +258,7 @@ class BrokenCmp {
259258} 
260259
261260@Component ( { selector : 'app-cmp' } ) 
262- @View ( { template : `outer { <router-outlet></router-outlet> }` ,  directives : routerDirectives } ) 
261+ @View ( { template : `outer { <router-outlet></router-outlet> }` ,  directives : ROUTER_DIRECTIVES } ) 
263262@RouteConfig ( [ new  Route ( { path : '/cause-error' ,  component : BrokenCmp } ) ] ) 
264263class  BrokenAppCmp  { 
265264 constructor ( public  router : Router ,  public  location : LocationStrategy )  { } 
0 commit comments