You can. Please check my example here: http://jsbin.com/OVAHiRI/1/edit
Sebastian Sebald於 2013年5月16日星期四UTC+8下午8時36分01秒寫道: > > Can I set a form field $dirty from a controller or directive? > > I am updating (via controller) some additional fields, when user types in > another field. Here is a example: http://plnkr.co/edit/G3KJCi > I would like to flag programatically changed field dirty as well. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
