Socket
Socket
Sign inDemoInstall

ng-loading-bar

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-loading-bar

Automatic page loading / progress bar for Angular 2


Version published
Weekly downloads
21
decreased by-19.23%
Maintainers
1
Weekly downloads
 
Created
Source

Quick Start

1. Install ng-loading-bar
  npm install ng-loading-bar --save
2. Import the NgLoadingBarModule:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { NgLoadingBarModule } from 'ng-loading-bar';
import { AppComponent } from './app';

@NgModule({
  imports: [
    BrowserModule,
    HttpModule,
    NgLoadingBarModule.forRoot(),
  ],
  declarations: [ AppComponent ],
  bootstrap: [ AppComponent ],
})
export class AppModule {
}

3. Include ng-loading-bar in your app component:
import { Component } from '@angular/core';

@Component({
  selector: 'app',
  template: `
    ...
    <ng-loading-bar></ng-loading-bar>
  `,
})
export class AppComponent {}

4. include the supplied CSS file (or create your own).
  • loading-bar.css

Based on https://github.com/sir-valentin/Angular2LoadingBar.git

Keywords

FAQs

Package last updated on 21 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc