-
-
Notifications
You must be signed in to change notification settings - Fork 103
HttpClient requests
Murhaf Sousli edited this page Oct 7, 2018
·
17 revisions
Use this plugin to start and complete the progress bar with your HTTP requests.
NPM
npm i -S @ngx-progressbar/core @ngx-progressbar/http
YARN
yarn add @ngx-progressbar/core @ngx-progressbar/http
import { HttpClientModule } from '@angular/common/http';
import { NgProgressModule } from '@ngx-progressbar/core';
import { NgProgressHttpModule } from '@ngx-progressbar/http';
@NgModule({
imports: [
// ...
HttpClientModule,
NgProgressModule.forRoot(),
NgProgressHttpModule.forRoot()
]
})
And just add the progress bar component in your template
<ng-progress></ng-progress>
NgProgressHttpConfig API
Name | Default | Description |
---|---|---|
id | root | Progress bar ID. |
silentApis | [ ] | Array of silent APIs which will be ignored. |
See Http stackblitz
Become a sponsor and get your logo on our README on GitHub and the front page of https://ngx-progressbar.netlify.com/.
Become a backer and get your logo on our README on GitHub.
Older version (v12)
-
Automagic features
Older version (v11)
-
Automagic features