Socket
Book a DemoInstallSign in
Socket

@ngx-loading-bar/http

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-loading-bar/http

Automatic page loading / progress bar for Angular

latest
Source
npmnpm
Version
4.2.0
Version published
Maintainers
1
Created
Source

@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 {}

  • @ngx-loading-bar/router - Display loading bar when navigating between routes.
  • @ngx-loading-bar/http-client - Display the progress of your @angular/common/http requests.
  • @ngx-loading-bar/core - Core module to manage the progress bar manually.

Keywords

angular

FAQs

Package last updated on 28 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts