common-http-loader
TypeScript icon, indicating that this package has built-in type declarations

8.0.2 • Public • Published

MyWorkspace

This project was generated with Angular CLI version 8.3.29. and it support for angular 8 version

Code scaffolding

  1. install library using below command.

    Angular 8 => npm i common-http-loader@8.* Angular 12 and above => npm i common-http-loader@1.*

  2. Add package dependency for path in tsconfig.json

    "compilerOptions":[ "paths": { "@angular/*": ["./node_modules/@angular/*"], "common-http-loader": ["./node_modules/common-http-loader"] } ]

  3. Add CommonHttpLoaderModule inside the appModule.ts

    import { CommonHttpLoaderModule } from 'common-http-loader';

    imports: [ CommonHttpLoaderModule ]

  4. To show loader add below component selector to the app.component.html <lib-common-http-loader></lib-common-http-loader>

Result

Results :- after following all the above steps you will be able to monitor all the http calls and show and hide loader spinner

Suggestion and Feedback :- Email on pathademilind2@gmail.com

Readme

Keywords

none

Package Sidebar

Install

npm i common-http-loader

Weekly Downloads

1

Version

8.0.2

License

none

Unpacked Size

128 kB

Total Files

30

Last publish

Collaborators

  • pathademilind2