text: var tegApp = angular.module('tegApp', ['chieffancypants.loadingBar']);
  
  tegApp.config(function(cfpLoadingBarProvider) {
      cfpLoadingBarProvider.includeBar = true;
      cfpLoadingBarProvider.latencyThreshold = 500;
    });
  
  tegApp.config(function($interpolateProvider){
                  $interpolateProvider.startSymbol('[[').endSymbol(']]');
          });
  
  tegApp.controller('LoadCtrl', function ($scope, $http, $timeout, cfpLoadingBar) {
      $scope.posts = [];
      $scope.section = null;
      $scope.subreddit = null;
      
      $scope.start = function() {
        cfpLoadingBar.start();
      };
  
      $scope.complete = function () {
        cfpLoadingBar.complete();
      }
  
      // fake the initial load so first time users can see it right away:
      $scope.start();
      $scope.fakeIntro = true;
      $timeout(function() {
        $scope.complete();
        $scope.fakeIntro = false;
      }, 750);
  
    });
  
  angular.element(document).ready(function() {
        angular.bootstrap(document, ['tegApp']);
  });