I have got a table, styled with bootstrap. The content of this table is filled using Angular.js. How do I make a row clickable so it will call a function in the scope?
T
You could just pass the ingredient in argument
ng-click="setSelected(ingredient)"
and in controller
$scope.setSelected = function(my_ingredient) { $scope.selected = my_ingredient; console.log($scope.selected); };