Skip to content

ramonornela/http-plugins-ionic

Repository files navigation

HttpPluginsIonicModule

This extends of http

Using HttpPluginsIonicModule in an Ionic 2 app

import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';

// Import http module
import { HttpModule, DefaultPlugins } from '@mbamobi/http';

// Import http plugins ionic
import { HttpPluginsIonicModule } from '@mbamobi/http-plugins-ionic';

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    IonicModule.forRoot(MyApp),
    HttpModule.initialize(DefaultPlugins), // http module with plugin parseResponse
    HttpPluginsIonicModule
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ]
})
export class AppModule {}

Contributing

See CONTRIBUTING.md