Skip to content

Commit

Permalink
fix(progressbar): use PercentPipe by default (#3777)
Browse files Browse the repository at this point in the history
Closes #3700
  • Loading branch information
gpolychronis committed Jul 2, 2020
1 parent a95c910 commit ceb1985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/progressbar/progressbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {NgbProgressbarConfig} from './progressbar-config';
{{animated ? ' progress-bar-animated' : ''}}{{striped ? ' progress-bar-striped' : ''}}"
role="progressbar" [style.width.%]="getPercentValue()"
[attr.aria-valuenow]="getValue()" aria-valuemin="0" [attr.aria-valuemax]="max">
<span *ngIf="showValue" i18n="@@ngb.progressbar.value">{{getPercentValue()}}%</span><ng-content></ng-content>
<span *ngIf="showValue" i18n="@@ngb.progressbar.value">{{getValue() / max | percent}}</span><ng-content></ng-content>
</div>
</div>
`
Expand Down

0 comments on commit ceb1985

Please sign in to comment.