@ngx-progressbar/router
Advanced tools
Changelog
5.3.1
ignoreProgressBar
to request's headers, closes #234 in a625d01.forRoot(config?)
usage, config can be provided using withConfig(config)
instead, in 1b76e0b.This removes the need to import
NgProgressModule
in your root module, in other word, you no longer need to include this library in the main bundle if you are using it in lazy loaded modules.
NgProgressModule.forRoot()
to NgProgressModule
NgProgressModule.forRoot(config)
, then change it to NgProgressModule.withConfig(config)
The same applies on
NgProgressHttpModule
andNgProgressRouterModule
Changelog
5.2.1
Changelog
5.2.0
[fixed]
option, to disable the default progress bar fixed position, closes #212 in fff21f3.startEvents
and completeEvents
options, closes #211 in 0f7effe.NgProgressRef.state$
to NgProgressRef.state
.Map<string, NgProgressRef>
for instances instead of just an object.NgProgress
.NgProgress
service: setConfig()
, start()
, set()
, inc()
, complete()
, isStarted()
, started()
, completed()
, destroy()
.Before:
It was possible to use these functions from NgProgress
service directly
ngProgress.start();
After:
These functions are accessed by the NgProgressRef
instance
const progressRef: NgProgressRef = ngProgress.ref();
progressRef.start();
NgProgressRef
to integrate it with other progress bar componentsBefore:
<ng-container *ngIf="progressRef.state$ | async; let state">
<mat-progress-bar *ngIf="state.active" [value]="state.value"></mat-progress-bar>
</ng-container>
After:
<ng-container *ngIf="progressRef.state | async; let state">
<mat-progress-bar *ngIf="state.active" [value]="state.value"></mat-progress-bar>
</ng-container>
Changelog
5.1.0
{providedIn: 'root'}
instead of useFactory
function in d31cacd.Before, to add the automagic features, we used to import NgProgressHttpModule
and NgProgressRouterModule
.
Now we must use forRoot()
on these modules => NgProgressHttpModule.forRoot()
and NgProgressRouterModule.forRoot()
.
Changelog
5.0.1
warning " > @ngx-progressbar/core@5.0.0" has incorrect peer dependency "@angular/core@5.0.0".