title: Angularjs validation for ui-select multiple
body: <p><strong>THE SITUATION:</strong></p>
  
  <p>I have an angular app that send emails.
  There is a form with three fields:
  Address - Subject - Text.</p>
  
  <p>For the address field I am using angular <a href="https://github.com/angular-ui/ui-select" rel="nofollow">ui-select</a>.</p>
  
  <p>Everything is working fine, except the validation on the address field (on subject and text validation is working properly).</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>This bug has been fixed from version 0.16.1. as pointed out by @yishaiz.</p>
  
  <p>So this question and its relative solution regard ui-select versions &lt; 0.16.1.</p>
  
  <p><br></p>
  
  <p><strong>THE CODE:</strong></p>
  
  <p>HTML:</p>
  
  <pre><code> &lt;form name="emailForm" ng-submit="submitForm(emailForm.$valid)"&gt; 
  
      &lt;div class="row form-group"&gt;
  
          &lt;label class="col-sm-2 control-label"&gt;To: &lt;/label&gt;
  
          &lt;div class="col-sm-10"&gt;
  
              &lt;ui-select multiple ng-model="database_people.selectedPeople" theme="select2" ng-disabled="disabled" style="width:100%"&gt;
  
                &lt;ui-select-match placeholder="Select person..."&gt;{{$item.name}} &amp;lt; {{$item.value}} &amp;gt;&lt;/ui-select-match&gt;
  
                &lt;ui-select-choices repeat="person2 in list_people | filter: {name: $select.search.name, value: $select.search.value, db_data_type_id: 5}"&gt;
  
                    &lt;div ng-bind-html="person2.name | highlight: $select.search"&gt;&lt;/div&gt;
  
                      &lt;small&gt;
  
                          email: &lt;span ng-bind-html="''+person2.value | highlight: $select.search"&gt;&lt;/span&gt;
  
                      &lt;/small&gt;
  
                &lt;/ui-select-choices&gt;
  
              &lt;/ui-select&gt;
  
          &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;div class="col-sm-8"&gt;
  
           &lt;button type="submit" class="btn btn-primary"&gt;Send&lt;/button&gt;
  
      &lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>ANGULARJS:</p>
  
  <pre><code>$scope.submitForm = function(isValid) 
   {
      if (isValid) {
          alert('valid');
      }
      else {
          alert('not valid')
      }
  };
  </code></pre>
  
  <p><br></p>
  
  <p><strong>PLUNKER:</strong></p>
  
  <p><a href="http://plnkr.co/edit/MYW7SM9c9anH6RTomfRG?p=preview" rel="nofollow">http://plnkr.co/edit/MYW7SM9c9anH6RTomfRG?p=preview</a></p>
  
  <p>As you can see the ui-select is required but the form is parse as valid.</p>
  
  <p><br></p>
  
  <p><strong>QUESTION(s):</strong></p>
  
  <p>How can i make the ui-select multiple required?</p>