<div class="{{roundedgeclass}}">
<div *ngIf="showProgress" class="progress" [ngStyle]="{'height':height}">

  <span [ngClass]="progressclass" *ngIf="infinite" style="width: 100%;" tabindex="1" role="progressbar" aria-readonly="true"
    attr.aria-label="'inprogress {{label}}'">
    {{label != null ? label : 'Loading...'}}
  </span>
  <span tabindex="1" attr.aria-label="'progressbar {{tooltip}}'" role="progressbar" attr.aria-valuenow="{{currentvalue}}"
    aria-valuemin="0" aria-valuemax="100" [ngClass]="progressclass" *ngIf="!infinite" [ngStyle]="{'width.%' : currentvalue}">
  </span>
  <div *ngIf="showvalue" [ngStyle]="{'margin-left.%' : currentvalue}">
    {{currentvalue}}%
  </div>
</div>
</div>