@@ -23,11 +23,11 @@ import {RouteConfig, Route, Redirect} from 'angular2/src/router/route_config_dec
23
23
import { PromiseWrapper } from 'angular2/src/facade/async' ;
24
24
import { BaseException } from 'angular2/src/facade/lang' ;
25
25
import {
26
- routerInjectables ,
26
+ ROUTER_BINDINGS ,
27
27
RouteParams ,
28
28
Router ,
29
29
APP_BASE_HREF ,
30
- routerDirectives ,
30
+ ROUTER_DIRECTIVES ,
31
31
HashLocationStrategy
32
32
} from 'angular2/router' ;
33
33
@@ -37,9 +37,8 @@ import {APP_COMPONENT} from 'angular2/src/core/application_tokens';
37
37
38
38
export function main ( ) {
39
39
describe ( 'router injectables' , ( ) => {
40
- beforeEachBindings ( ( ) => {
41
- return [ routerInjectables , bind ( LocationStrategy ) . toClass ( MockLocationStrategy ) ] ;
42
- } ) ;
40
+ beforeEachBindings (
41
+ ( ) => { return [ ROUTER_BINDINGS , bind ( LocationStrategy ) . toClass ( MockLocationStrategy ) ] ; } ) ;
43
42
44
43
// do not refactor out the `bootstrap` functionality. We still want to
45
44
// keep this test around so we can ensure that bootstrapping a router works
@@ -51,7 +50,7 @@ export function main() {
51
50
52
51
bootstrap ( AppCmp ,
53
52
[
54
- routerInjectables ,
53
+ ROUTER_BINDINGS ,
55
54
bind ( LocationStrategy ) . toClass ( MockLocationStrategy ) ,
56
55
bind ( DOCUMENT ) . toValue ( fakeDoc )
57
56
] )
@@ -210,26 +209,26 @@ class Hello2Cmp {
210
209
}
211
210
212
211
@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 } )
214
213
@RouteConfig ( [ new Route ( { path : '/' , component : HelloCmp } ) ] )
215
214
class AppCmp {
216
215
constructor ( public router : Router , public location : LocationStrategy ) { }
217
216
}
218
217
219
218
@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 } )
221
220
@RouteConfig ( [ new Route ( { path : '/child' , component : HelloCmp } ) ] )
222
221
class ParentCmp {
223
222
}
224
223
225
224
@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 } )
227
226
@RouteConfig ( [ new Route ( { path : '/child' , component : Hello2Cmp } ) ] )
228
227
class SuperParentCmp {
229
228
}
230
229
231
230
@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 } )
233
232
@RouteConfig ( [
234
233
new Route ( { path : '/parent/...' , component : ParentCmp } ) ,
235
234
new Route ( { path : '/super-parent/...' , component : SuperParentCmp } )
@@ -246,7 +245,7 @@ class QSCmp {
246
245
}
247
246
248
247
@Component ( { selector : 'app-cmp' } )
249
- @View ( { template : `<router-outlet></router-outlet>` , directives : routerDirectives } )
248
+ @View ( { template : `<router-outlet></router-outlet>` , directives : ROUTER_DIRECTIVES } )
250
249
@RouteConfig ( [ new Route ( { path : '/qs' , component : QSCmp } ) ] )
251
250
class QueryStringAppCmp {
252
251
constructor ( public router : Router , public location : LocationStrategy ) { }
@@ -259,7 +258,7 @@ class BrokenCmp {
259
258
}
260
259
261
260
@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 } )
263
262
@RouteConfig ( [ new Route ( { path : '/cause-error' , component : BrokenCmp } ) ] )
264
263
class BrokenAppCmp {
265
264
constructor ( public router : Router , public location : LocationStrategy ) { }
0 commit comments