chore(router): use new provide API in examples
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {bootstrap, Component, bind} from 'angular2/angular2';
|
||||
import {bootstrap, Component, provide} from 'angular2/angular2';
|
||||
import {
|
||||
CanActivate,
|
||||
RouteConfig,
|
||||
@ -52,5 +52,6 @@ class AppCmp {
|
||||
|
||||
|
||||
export function main() {
|
||||
return bootstrap(AppCmp, [bind(APP_BASE_HREF).toValue('/angular2/examples/router/ts/reuse')]);
|
||||
return bootstrap(AppCmp,
|
||||
[provide(APP_BASE_HREF, {useValue: '/angular2/examples/router/ts/reuse'})]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user