solid-ng2-module

Solid Angular Module

Usage no npm install needed!

<script type="module">
  import solidNg2Module from 'https://cdn.skypack.dev/solid-ng2-module';
</script>

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