I\'m an angular newbie, and I\'m stumbling over something in how angular\'s form validation directives work.
I know that I can fairly easily add directives to in
Would a simple comparison suit you?
I think a directive would be an overkill if your case is just this. If you do not feel comfortable with the view containing application logic, you can export it in a function of the controller:
$scope.isMinMaxInalid = function() {
return $scope.field.min > $scope.field.max;
};
And the template: