[Solved] $scope.myFunc() is not a function


Because the function does not exist on $scope. This is what you need to do:

$scope.gridLocation = function (row, column) {
    return 'span'.concat(row).concat(column);
};

$scope.clickedOn = function (row, column) {
    $scope.gridLocation(row, column);
};

Edit

To do what you asked for in the comments (I hope I understood correctly):

$scope.clickedOn = function (row, column) {
    $scope[$scope.gridLocation(row, column)] = 'test';
};

6

solved $scope.myFunc() is not a function