diff --git a/src/loading-bar.js b/src/loading-bar.js index 607a7ea..ea3d670 100644 --- a/src/loading-bar.js +++ b/src/loading-bar.js @@ -223,10 +223,13 @@ angular.module('cfp.loadingBar', []) if (!started) { return; } + var pct = (n * 100) + '%'; loadingBar.css('width', pct); status = n; + $rootScope.$broadcast('cfpLoadingBar:statusChanged', status); + // increment loadingbar to give the illusion that there is always // progress but make sure to cancel the previous timeouts so we don't // have multiple incs running at the same time.