title: Ui-select ~ Use object key as value and object value as name
body: <p>My users object looks as follows:</p>
  
  <pre><code>var users = {
      1: 'John Doe',
      7: 'Marry Match',
      13: 'Lindsay Lohan'
  };
  </code></pre>
  
  <p>With 1, 7 and 13 being the user ID's and the names... Well, being the names.</p>
  
  <p>How can I, in <a href="https://github.com/angular-ui/ui-select" rel="nofollow" title="ui-select">ui-select </a>, populate my dropdown with my users?</p>
  
  <p>I've tried the following </p>
  
  <pre><code>&lt;ui-select ng-model="selectedUser" theme='select2' title="Choose a user"&gt;
      &lt;ui-select-choices repeat="(id, name) in users | filter: $select.search"&gt;
          &lt;span ng-bind="name"&gt;&lt;/span&gt;
      &lt;/ui-select-choices&gt;
  &lt;/ui-select&gt;
  </code></pre>