Automatic page loading / progress bar for Angular


6.0.23 months ago5 years agoMinified + gzip package size for @ngx-loading-bar/http-client in KB



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';

  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';

  selector: 'app',
  template: `
export class AppComponent {}

Related packages

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.