2.0.1 • Published 6 years ago
solid-ng2-module v2.0.1
solid-ng2-module
Installation
To install this library, run:
$ npm install solid-ng2-module --saveDevelopment
To generate all *.js, *.js.map and *.d.ts files:
$ npm run buildSolidHttpInterceptor
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