diff --git a/src/loading-bar.js b/src/loading-bar.js index 720de0c..568f9e8 100644 --- a/src/loading-bar.js +++ b/src/loading-bar.js @@ -156,11 +156,12 @@ angular.module('cfp.loadingBar', []) this.startSize = 0.02; this.parentSelector = 'body'; this.spinnerTemplate = '
'; + this.loadingBarTemplate = '
'; this.$get = ['$injector', '$document', '$timeout', '$rootScope', function ($injector, $document, $timeout, $rootScope) { var $animate; var $parentSelector = this.parentSelector, - loadingBarContainer = angular.element('
'), + loadingBarContainer = angular.element(this.loadingBarTemplate), loadingBar = loadingBarContainer.find('div').eq(0), spinner = angular.element(this.spinnerTemplate);