I have a form with AngularJS validation. The problem is that I add validators in a elements dynamically:
if (constraint.NotNull){
elem.attr("ng-required","true");
}
The NgModelController for this element always evaluate "form.$valid = true", even with empty value.
What's wrong?