title: How to import angular HttpModule to the root NgModule
body: <p>I am beginning with ionic v2, angular2 and typeScript. So i am trying to set up an ionic login page which retrieves login credentials and contact the remote api for authentication. I obviously need angular Http Client.  </p>
  
  <p>The <strong>src/app/app.component.ts</strong> looks like:    </p>
  
  <pre><code>import { Component } from '@angular/core';
  import { Platform } from 'ionic-angular';
  import { StatusBar, Splashscreen } from 'ionic-native';
  
  
  import { LoginPage } from '../pages/login/login';
  
  
  @Component({
    templateUrl: 'app.html'
  })
  export class MyApp {
    rootPage = LoginPage;
  
    constructor(platform: Platform) {
      platform.ready().then(() =&gt; {
  
        StatusBar.styleDefault();
        Splashscreen.hide();
      });
    }
  }  
  </code></pre>
  
  <p><strong>src/app/app.module.ts</strong> looks like:</p>
  
  <pre><code>import { NgModule, ErrorHandler } from '@angular/core';
  import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
  import { MyApp } from './app.component';
  import { LoginPage } from '../pages/login/login';
  import { AuthService } from '../providers/auth-service';
  import { HttpModule, JsonpModule } from '@angular/http';
  
  @NgModule({
    declarations: [
      MyApp,
      LoginPage,
      HttpModule,
      JsonpModule,
  
    ],
    imports: [
      IonicModule.forRoot(MyApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
      MyApp,
      LoginPage
    ],
    providers: [{provide: ErrorHandler, useClass: IonicErrorHandler},AuthService]
  })
  export class AppModule {}
  </code></pre>
  
  <p>Of course any other necessary files (page/login/login.* and provider/auth-service.ts) are defined, so there is no missing file or service error.</p>
  
  <p>THE PROBLEM:</p>
  
  <p>When i build the app via <code>ionic serve</code>, the process finishes without errors, but when launching the app in the browser, i get this error:  </p>
  
  <p><strong>Unexpected module "HttpModule" declared by the module "AppModule"</strong><br>
  Nevertheless i am just following instructions from <a href="https://angular.io/docs/ts/latest/guide/server-communication.html" rel="nofollow noreferrer">this tutorial from the official documentation</a>.<br>
  I have been googling since a couple of hours without finding a workaround.<br>
  Can someone tell me what am i doing wrong?</p>