Rangée d'amorçage cliquable avec angulaire

J'ai une table de style avec bootstrap. Le contenu de ce tableau est rempli à l'aide d'Angular.js. Comment puis-je faire une ligne cliquable ce qui fera appel à une fonction dans le champ d'application?

Le code suivant ne fonctionne pas pour moi (la ng-cliquez sur le cadre):

Table:

    <table class="table table-hover">
        <thead>
            <tr>
                <th>Name</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="ingredient in ingredients" ng-click="setSelected({{$index}});">
                <td>{{ ingredient.name }}</td>
                <td>{{ ingredient.status }}</td>
            </tr>
        </tbody>
    </table>

Contrôleur:

$scope.setSelected = function(index) {
    $scope.selected = $scope.ingredients[index];
    console.log($scope.selected);
};

source d'informationauteur Klaasvaak