I have an editable ng-grid in my web application. The grid functions make my life easy and are truly great but I've noticed one minor problem that I don't know how to work around gracefully.
Namely, I want to detect when a user has made changes to the grid. Right now, I use...
$scope.$on('ngGridEventEndCellEdit', function(evt) {
//function goes here!
});
...this works, kind of.
The problem is this event is triggered even when the user has NOT made a change to the cell but has only clicked/tabbed into/out-of it. I don't want to have to compare each field in the row from the before and after to detect if a change has been made -- is there a better way?
Thanks!