refactor: change provide(...) for {provide: ...}

- provide() is deprecated,
- {} syntax is required by the offline compiler
This commit is contained in:
Victor Berchet
2016-06-02 17:30:40 -07:00
parent 27a47e7841
commit a6ad61d83e
128 changed files with 676 additions and 728 deletions

View File

@ -1,4 +1,4 @@
import {Component, Injectable, provide, ComponentRef} from '@angular/core';
import {Component, Injectable, ComponentRef} from '@angular/core';
import {bootstrap} from '@angular/platform-browser';
import {
OnDeactivate,
@ -57,7 +57,7 @@ export class AppCmp {
export function main(): Promise<ComponentRef<AppCmp>> {
return bootstrap(AppCmp, [
provide(APP_BASE_HREF, {useValue: '/@angular/examples/router/ts/on_deactivate'}),
{provide: APP_BASE_HREF, useValue: '/@angular/examples/router/ts/on_deactivate'},
LogService
]);
}