I have created a directive for a dual list box in forms (similar to Bootstrap Dual Listbox). The directive is made up of 2 list boxes; values (left) and options (right). I would like to make the directive work with angular form validation. If the values are empty then form.$invalid is true.
I've tried doing this by passing a custom required attribute to the directive.
I am having trouble applying the "required" attribute to the first select box within the directive.
Within the directive template the following expression is not working at all:
ng-required="dlRequired == true"
In the example the save button is enabled when with only the text box being valid.
Where am I going wrong?