Check out this plunker demo showcasing the behavior you're looking for: http://plnkr.co/edit/ZfeiNxiGLqeivFeaqY2y?p=preview
The key section of code is displayed below:
gridApi.edit.on.afterCellEdit($scope, function(rowEntity, colDef, newValue, oldValue) {
colDef.cellClass = function(grid, row, col, rowRenderIndex, colRenderIndex) {
if (rowEntity.id === row.entity.id && newValue !== oldValue) {
return "test";
}
return "";
};
$scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.COLUMN);
Keep in mind that "test" is the class name specified in main.css
.test {
background-color: red !important;
}
UPDATE: I've created a variation of your plunker example here: http://plnkr.co/edit/OgecJQo8FOREIsQcufuz?p=preview