To install this library, run:
$ npm install abp-ng2-module --save
To generate all *.js
, *.js.map
and *.d.ts
files:
$ npm run build
In order to use AbpHttpInterceptor in your module, first import it into your module like below;
import { AbpHttpInterceptor } from '@abp/abpHttpInterceptor';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
then, add it to your module providers like below;
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }
///other providers
]
MIT