Adding dataName to allow for multiple tables to exist on the same page, so if dataName is 'allPositions', then $scope.allPositions contains the data not $scope.$data