Skip to content

Commit

Permalink
Merge pull request #111 from jervert/master
Browse files Browse the repository at this point in the history
ability to customize also the progress bar
  • Loading branch information
chieffancypants committed Sep 18, 2014
2 parents 24cdf53 + d617fc9 commit 069c8ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loading-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,12 @@ angular.module('cfp.loadingBar', [])
this.startSize = 0.02;
this.parentSelector = 'body';
this.spinnerTemplate = '<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>';
this.loadingBarTemplate = '<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>';

this.$get = ['$injector', '$document', '$timeout', '$rootScope', function ($injector, $document, $timeout, $rootScope) {
var $animate;
var $parentSelector = this.parentSelector,
loadingBarContainer = angular.element('<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>'),
loadingBarContainer = angular.element(this.loadingBarTemplate),
loadingBar = loadingBarContainer.find('div').eq(0),
spinner = angular.element(this.spinnerTemplate);

Expand Down

0 comments on commit 069c8ec

Please sign in to comment.