'use strict';

angular.module('privateTheaterApp')
  .controller('AdminCtrl', ['$scope', '$rootScope', 'MediaError',function ($scope, $rootScope, MediaError) {
    $rootScope.reports = MediaError.query();
    $scope.reports = $rootScope.reports;
  }]);

'use strict';

angular.module('privateTheaterApp')
  .controller('AdminCtrl', ['$scope', '$rootScope', 'MediaError',function ($scope, $rootScope, MediaError) {
    if(!$rootScope.reports){
      $rootScope.reports = MediaError.query();
    }
    $scope.reports = $rootScope.reports;
  }]);

Load reports only if they aren't in rootScope
Load reports only if they aren't in rootScope
