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