/** * The home controller * * @param {$scope} $scope The $scope service from angular */ mainApp.controller('homeCtrl', [ '$scope', 'Compute', function ($scope, Compute) { var updatePage=function(){ // TODO Update graph etc... } // Retrieve all Data Compute.pullData(updatePage); }]);