gervais.b
gervais.b

Reputation: 2347

AngularJs, mark object as dirty

I have some objects that are retrieved from a web api and are "editable". When the user edit one object he is able to change some fields. I would like to maintains a isDirty field on those objects to know when they are modified (isDirty==true).

I wonder if I can rely on the AngularJs changes detection mechanism to set this field on my objects ?

Upvotes: 0

Views: 355

Answers (0)

Related Questions