I created a directive which is made by 2 selects, that loads the options from 2 json file:
http://plnkr.co/edit/7kK66c?p=preview
As you can see it works fine, but I would like to put this directive into a form, and check its validity. To be more specific I would like this directive to be valid only if the user selected an option from both selects (just like both have been marked with required). I found fields of tutorial about how to set the validy of directive that contains input text, but I nothing to check on selects...how could I do that?