refactor(http): Removed deprecated HTTP_PROVIDERS and JSONP_PROVIDERS (#10864)

BREAKING CHANGE: previously deprecated HTTP_PROVIDERS and JSONP_PROVIDERS were removed; see deprecation notice for migration instructions.
This commit is contained in:
Chuck Jazdzewski
2016-08-17 07:43:31 -07:00
committed by vikerman
parent 0a22e8eefd
commit 675e582ffd
5 changed files with 24 additions and 310 deletions

View File

@ -7,13 +7,13 @@
*/
import {NgModule} from '@angular/core';
import {HTTP_PROVIDERS} from '@angular/http';
import {HttpModule} from '@angular/http';
import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {HttpCmp} from './app/http_comp';
@NgModule({bootstrap: [HttpCmp], providers: [HTTP_PROVIDERS], imports: [BrowserModule]})
@NgModule({bootstrap: [HttpCmp], imports: [BrowserModule, HttpModule]})
class ExampleModule {
}

View File

@ -7,18 +7,13 @@
*/
import {NgModule} from '@angular/core';
import {JSONP_PROVIDERS} from '@angular/http';
import {JsonpModule} from '@angular/http';
import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {JsonpCmp} from './app/jsonp_comp';
@NgModule({
bootstrap: [JsonpCmp],
declarations: [JsonpCmp],
providers: [JSONP_PROVIDERS],
imports: [BrowserModule]
})
@NgModule({bootstrap: [JsonpCmp], declarations: [JsonpCmp], imports: [BrowserModule, JsonpModule]})
class ExampleModule {
}