@ngx-loading-bar/http
Version:
Automatic page loading / progress bar for Angular
54 lines (41 loc) • 1.34 kB
Markdown
# @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
```bash
npm install @ngx-loading-bar/http --save
```
#### 2. Import the `LoadingBarHttpModule`:
```ts
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';
export class AppModule {
}
```
#### 3. Include `ngx-loading-bar` in your app component:
```ts
import { Component } from '@angular/core';
export class AppComponent {}
```
## Related packages
- [@ngx-loading-bar/router](./../../packages/router/README.md) - Display loading bar when navigating between routes.
- [@ngx-loading-bar/http-client](./../../packages/http-client/README.md) - Display the progress of your `@angular/common/http` requests.
- [@ngx-loading-bar/core](./../../packages/core/README.md) - Core module to manage the progress bar manually.