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:

committed by
vikerman

parent
0a22e8eefd
commit
675e582ffd
@ -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 {
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user