diff --git a/app/app.module.ts b/app/app.module.ts index 4d10acf..0183727 100644 --- a/app/app.module.ts +++ b/app/app.module.ts @@ -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"; @@ -9,6 +11,8 @@ import { HomeComponent } from "./components/home/home.component"; @NgModule({ imports: [ BrowserModule, + HttpModule, + JsonpModule, routing ], declarations: [ diff --git a/app/components/home/home.component.ts b/app/components/home/home.component.ts index 54b4bd8..2e19cfb 100755 --- a/app/components/home/home.component.ts +++ b/app/components/home/home.component.ts @@ -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', diff --git a/app/main.ts b/app/main.ts index fecb4c6..2470c95 100644 --- a/app/main.ts +++ b/app/main.ts @@ -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);