Fix it so that setPristine works for both undo and save (angular)