I thought possibly I could use the ability to pass a boolean to the required directive.
However I would want to do something like
required="{{isVisible($element}}"
to hit a method on the controller like
$scope.isVisible = function(element){
return element.is(":visible");
}
which a. doesn't work as there's no $element, $event, etc. for required
and b. isn't very angular
So I'm thinking I'm going to need to override the core validation function in angular at some point?
Any ideas?