code: function () {
                      count = 100;
                      this.updateCount(count);
                      var self = this;
                      $timeout(function () {
                          self.hide();
                          $timeout(function () {
                              count = 0;
                              self.updateCount(count);
                          }, 500);
                      }, 1000);
                      return count;
                  }
docs: Jumps to 100% progress and fades away progressbar.