I am using AngularJS 1.3.8. I am using span tags with contentEditable = true to edit some fields inline. But I don't know how to use the $dirty, ng-minlength like validation attributed with span tags. Can anybody tell me how can I do that?
Asked
Active
Viewed 588 times
1
-
take a look at this http://stackoverflow.com/questions/14561676/angularjs-and-contenteditable-two-way-binding-doesnt-work-as-expected – Pankaj Parkar Apr 03 '15 at 06:33
-
Two way data binding is working for me. but the $dirty, $prestine etc and validation are not working. – Harikrishnan Apr 03 '15 at 06:53
-
probably you need write your own directive, and `$setValidity` of `ngModel` – Pankaj Parkar Apr 03 '15 at 07:03
-
hmm. OK.thank you for the reply. Will try to write one – Harikrishnan Apr 03 '15 at 08:00