<div uib-tooltip="Total: {{ total }}">

  <ng-switch on="total">
    <div ng-switch-when="0">
      <uib-progress></uib-progress>
    </div>
    <div ng-switch-default>
      <uib-progress>
        <uib-bar ng-hide="success == 0" value="100 * success / total" type="success" style="min-width: 2em">
          {{ success }}
        </uib-bar>
        <uib-bar ng-hide="warning == 0" value="100 * warning / total" type="warning" style="min-width: 2em">
          {{ warning }}
        </uib-bar>
        <uib-bar ng-hide="danger == 0" value="100 * danger / total" type="danger" style="min-width: 2em">
          {{ danger }}
        </uib-bar>
      </uib-progress>
    </div>
  </ng-switch>

</div>

<div uib-tooltip="Total: {{ total }}">

  <ng-switch on="total">
    <div ng-switch-when="undefined"></div>
    <div ng-switch-when="0">
      <uib-progress></uib-progress>
    </div>
    <div ng-switch-default>
      <uib-progress>
        <uib-bar ng-hide="success == 0" value="100 * success / total" type="success" style="min-width: 2em">
          {{ success }}
        </uib-bar>
        <uib-bar ng-hide="warning == 0" value="100 * warning / total" type="warning" style="min-width: 2em">
          {{ warning }}
        </uib-bar>
        <uib-bar ng-hide="danger == 0" value="100 * danger / total" type="danger" style="min-width: 2em">
          {{ danger }}
        </uib-bar>
      </uib-progress>
    </div>
  </ng-switch>

</div>

Fix progress bar flashing effect on load
Fix progress bar flashing effect on load
