title: Angular UI select2 array with objects is it possible?
body: <p>Is there a easy way to have options as objects in array? Like following:</p>
  
  <pre><code>$scope.search.categories = [{id: '1',name: 'first'},{id: '2',name: 'last'}];
  
  &lt;select ui-select2 ng-model="search.categories" multiple style="width:300px" data-placeholder="select category"&gt;
    &lt;option ng-repeat="category in search.categories" value="{{category}}"&gt;{{category.name}}&lt;/option&gt;
  
  &lt;/select&gt;
  </code></pre>
  
  <p>Or am I totally wrong?</p>