The task is kinda primitive.
I got a simple Angular form with various inputs and I'd like to highlight invalid inputs manually (e.g. on submit action).
I tried to loop over invalid inputs, assuming that they must have some method to highlight an error, but unfortunately they don't.
Same with form. $setDirty()
didn't work as well.
I'm using ng-form
directive to get access to both form and input.
AngularJS version is 1.2.x.