Skip to content

Commit

Permalink
HTTP_PROVIDERS are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vladotesanovic committed Aug 10, 2016
1 parent ab35e8b commit fd1cc2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule, JsonpModule } from '@angular/http';


import { AppComponent } from './app.component';
import { AboutComponent } from "./components/about/about.component";
Expand All @@ -9,6 +11,8 @@ import { HomeComponent } from "./components/home/home.component";
@NgModule({
imports: [
BrowserModule,
HttpModule,
JsonpModule,
routing
],
declarations: [
Expand Down
2 changes: 1 addition & 1 deletion app/components/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { Http } from "@angular/http";
import 'rxjs/add/operator/map';
import './rxjs-operators';

@Component({
selector: 'my-home',
Expand Down
6 changes: 1 addition & 5 deletions app/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { HTTP_PROVIDERS } from "@angular/http";

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';

platformBrowserDynamic([
HTTP_PROVIDERS,
]).bootstrapModule(AppModule);
platformBrowserDynamic().bootstrapModule(AppModule);

0 comments on commit fd1cc2b

Please sign in to comment.