request-handler
v3.4.7
Published
An Angular interceptor implementation library.
Downloads
23
Readme
equest-handler
An Angular interceptor implementation library.
Installation
To install this library, run:
$ npm install request-handler --save
Consuming your library
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install request-handler
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 { RequestHandlerModule } from 'request-handler';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify your library as an import
LibraryModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
License
MIT © george phillips