Is there a shorter way to reference the parent scope within this controller?
$scope.tables = [];
$scope.newTable = function(){
$scope.tables.push({name:"Table " + ($scope.tables.length+1),cols:[]});
$scope.selected = $scope.tables.length-1;
};
I'm wondering if there's a more concise method to avoid using $scope in $scope.newTable. Perhaps I'm missing something.