title: put two values in ng model at Angularjs
body: <p>I need to show current location storage or current employee wheres the inventory is at the moment</p>
  
  <pre><code>&lt;select class=" form-control"  ng-model="location.name"&gt;
          &lt;option value=""&gt;Choose Location&lt;/option&gt;
      &lt;optgroup label="Locations"&gt;
          &lt;option value="{{location.resource_uri}}" ng-repeat="location in locations"&gt;{{location.name}}&lt;/option&gt;  
      &lt;/optgroup&gt;
      &lt;optgroup label="Holder"&gt;
          &lt;option value="{{user.resource_uri}}" ng-repeat="user in users"&gt;{{user.first_name + ' ' + user.last_name}}&lt;/option&gt;
      &lt;/optgroup&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Can I put in ng-model two values, so if location is not null, i get current Location, if the location is null , i get employee name selected.</p>