I'm trying to ng-bind $scope.span00, span01, span10, and so on in a grid.
$scope.span01 = 'test'; // this works fine
Now for the ng-click...
$scope.clickedOn = function(row, column) {
var gridLocation = function() { return 'span'.concat(row).concat(column); } // returns span01
$scope.gridLocation() = 'test'; // says $scope.gridLocation() is not a function.
}
It's saying it's not a function. What do I do here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…