angulaire de l'interface utilisateur-réseau comment utiliser onRegisterApi dans gridOptions

J'ai un modifiable table avec des lignes supplémentaires .columnDefs. J'ai ajouté une grille d'api à table pour alerter quand quelque chose a changer:

$scope.gridOptions.onRegisterApi = function (gridApi) {
        //set gridApi on scope
        $scope.gridApi = gridApi;
        gridApi.edit.on.afterCellEdit($scope, function (rowEntity, colDef, newValue, oldValue) {
            if (newValue !== oldValue) {
                alert('edited row id:' + rowEntity.id + ' Column:' + colDef.name + ' newValue:' + newValue + ' oldValue:' + oldValue);
            }
        });
    };

Je ne sais pas comment l'utiliser dans columnDefs. J'ai essayé $scope.gridOptions.columnDefs.onRegisterApi = function (gridApi) {}
Mais ce n'est pas le travail. Je dois obtenir des informations ce qui a changé dans ce sous les lignes.

OriginalL'auteur Michal | 2015-05-12