build/loading-bar.js
function _start() {
        if (!$animate) {
          $animate = $injector.get('$animate');
        }

        $timeout.cancel(completeTimeout);

        // do not continually broadcast the started event:
        if (started) {
          return;
        }

        var document = $document[0];
        var parent = document.querySelector ?
          document.querySelector($parentSelector)
          : $document.find($parentSelector)[0]
        ;

        if (! parent) {
          parent = document.getElementsByTagName('body')[0];
        }

        var $parent = angular.element(parent);
        var $after = parent.lastChild && angular.element(parent.lastChild);

        $rootScope.$broadcast('cfpLoadingBar:started');
        started = true;

        if (includeBar) {
          $animate.enter(loadingBarContainer, $parent, $after);
        }

        if (includeSpinner) {
          $animate.enter(spinner, $parent, loadingBarContainer);
        }

        _set(startSize);
      }
function _start() {
        if (!$animate) {
          $animate = $injector.get('$animate');
        }

        $timeout.cancel(completeTimeout);

        // do not continually broadcast the started event:
        if (started) {
          return;
        }

        var document = $document[0];
        var parent = document.querySelector ?
          document.querySelector($parentSelector)
          : $document.find($parentSelector)[0]
        ;

        if (! parent) {
          parent = document.getElementsByTagName('body')[0];
        }

        var $parent = angular.element(parent);
        var $after = parent.lastChild && angular.element(parent.lastChild);

        $rootScope.$broadcast('cfpLoadingBar:started');
        started = true;

        if (includeBar) {
          $animate.enter(loadingBarContainer, $parent, $after);
        }

        if (includeSpinner) {
          $animate.enter(spinner, $parent, loadingBarContainer);
        }

        _set(startSize);
      }
function _start ( ) { if ( ! $animate ) { $animate = $injector . get ( '$animate' ) ; } $timeout . cancel ( completeTimeout ) ; // do not continually broadcast the started event: if ( started ) { return ; } var document = $document [ 0 ] ; var parent = document . querySelector ? document . querySelector ( $parentSelector ) : $document . find ( $parentSelector ) [ 0 ] ; if ( ! parent ) { parent = document . getElementsByTagName ( 'body' ) [ 0 ] ; } var $parent = angular . element ( parent ) ; var $after = parent . lastChild && angular . element ( parent . lastChild ) ; $rootScope . $broadcast ( 'cfpLoadingBar:started' ) ; started = true ; if ( includeBar ) { $animate . enter ( loadingBarContainer , $parent , $after ) ; } if ( includeSpinner ) { $animate . enter ( spinner , $parent , loadingBarContainer ) ; } _set ( startSize ) ; }
Inserts the loading bar element into the dom, and sets it to 2%
Inserts the loading bar element into the dom and sets it to 2%