Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Latest commit

 

History

History
60 lines (43 loc) · 1.05 KB

README.MD

File metadata and controls

60 lines (43 loc) · 1.05 KB

No longer actively maintained

n9-angular2-http-client

Installation

To install this library, run:

$ npm install n9-angular2-http-client --save

Usage

$ npm install n9-angular2-http-client

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { N9HttpClientModule } from 'n9-angular2-http-client';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    // This import will initialize with the default N9HttpClientService but you can also inject OpaqueToken[] to inject multiple instances
    N9HttpClientModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Development

To generate all *.js, *.js.map and *.d.ts files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Gaetan SENN