Angular UI Grid - Click event on selected row
<p><strong>Target</strong></p>

<p>I've got a UI Grid. When I click on a row it should get selected and a function with the row as a parameter should be called.</p>

<p><strong>Current Approach</strong></p>

<p>I use the following config code to generate the Grid:</p>

<pre><code>$scope.gridOptions = {
        enableFiltering: true,
        enableRowHeaderSelection: false,
        enableRowSelection: true,
        multiSelect: false,
        noUnselect: true,
        onRegisterApi: function (gridApi) {
            $scope.gridApi = gridApi;
            $scope.gridApi.selection.on.rowSelectionChanged($scope, function (row) {
                var name = row.entity.name;
                $scope.addToQueue(name);
            });
        }
    };
</code></pre>

<p><strong>Problem</strong></p>

<p>The above code works well when I actually change the selection (as the name of the function suggest). But it should be possible to add a row multiple times to the queue. So I want to call <code>$scope.addToQueue(name)</code> even when the row is already selected. </p>