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

4.2.0 • Public • Published

@ngx-loading-bar/http

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

1. Install @ngx-loading-bar/http

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

2. Import the LoadingBarHttpModule:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { LoadingBarHttpModule } from '@ngx-loading-bar/http';
import { AppComponent } from './app';

@NgModule({
  imports: [
    BrowserModule,
    HttpModule,

    LoadingBarHttpModule,
  ],
  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

Package Sidebar

Install

npm i @ngx-loading-bar/http

Weekly Downloads

714

Version

4.2.0

License

MIT

Unpacked Size

83.2 kB

Total Files

23

Last publish

Collaborators

  • aitboudad