Read more

$setDirty for Angular 1.2

Arne Hartherz
December 10, 2014Software engineer at makandra GmbH

Angular 1.3 offers $setDirty for your ngModelController. If you are stuck on Angular 1.2, do this:

model.$setViewValue(model.$viewValue)
Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show archive.org snapshot

This turns the model dirty, while keeping its value.

Posted by Arne Hartherz to makandra dev (2014-12-10 14:25)