$setDirty for Angular 1.2
Angular 1.3 offers $setDirty
for your ngModelController. If you are stuck on Angular 1.2, do this:
model.$setViewValue(model.$viewValue)
This turns the model dirty, while keeping its value.
Angular 1.3 offers $setDirty
for your ngModelController. If you are stuck on Angular 1.2, do this:
model.$setViewValue(model.$viewValue)
This turns the model dirty, while keeping its value.