# solid-ng2-module

## Installation

To install this library, run:

```bash
$ npm install solid-ng2-module --save
```
## Development

To generate all `*.js`, `*.js.map` and `*.d.ts` files:

```bash
$ npm run build
```

## SolidHttpInterceptor

In order to use SolidHttpInterceptor in your module, first import it and SolidModule into your module like below;

```ts
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;

```ts
imports: [
    ///other imports
    SolidModule
],
providers: [
    ///other providers
    { provide: HTTP_INTERCEPTORS, useClass: SolidHttpInterceptor, multi: true }
]
```

## License

MIT
