Negotiate Pushing Milestone

    @ngx-loading-bar/http-client
    TypeScript icon, indicating that this package has built-in type declarations

    6.0.2 • Public • Published

    @ngx-loading-bar/http-client

    A fully automatic loading bar with zero configuration for angular app (http, http-client and router).

    1. Install @ngx-loading-bar/http-client

      npm install @ngx-loading-bar/http-client --save

    2. Import the LoadingBarHttpClientModule:

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { HttpClientModule } from '@angular/common/http';
    import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client';
    import { AppComponent } from './app';
    
    @NgModule({
      imports: [BrowserModule, HttpClientModule, LoadingBarHttpClientModule],
      declarations: [AppComponent],
      bootstrap: [AppComponent],
    })
    export class AppModule {}

    3. Include ngx-loading-bar in your app component:

    import { Component } from '@angular/core';
    
    @Component({
      selector: 'app',
      template: `
        ...
        <ngx-loading-bar></ngx-loading-bar>
      `,
    })
    export class AppComponent {}

    Related packages

    Install

    npm i @ngx-loading-bar/http-client

    DownloadsWeekly Downloads

    22,101

    Version

    6.0.2

    License

    MIT

    Unpacked Size

    30.2 kB

    Total Files

    14

    Last publish

    Collaborators

    • aitboudad