old_contents: app.controller('MainCtrl', function($scope, $location, $anchorScroll) {
  
    this.toggleClass = function(elementId, className){
      angular.element('#' + elementId).toggleClass(className);
    };
  
  
  
  });
new_contents: app.controller('MainCtrl', function($scope, $location, $anchorScroll, $timeout) {
    var that = this;
  
    this.toggleClass = function(elementId, className){
      angular.element('#' + elementId).toggleClass(className);
    };
  
    $timeout(function(){
      that.toggleClass('sideNav', 'active')
    }, 1000);
  
  
  });
subject: add timeout to navbar display