2.0.1 • Published 4 years ago

solid-ng2-module v2.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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

2.0.1

4 years ago

2.0.0

4 years ago

0.0.1

7 years ago