title: how to properly bind loaded data to @ng-select, angular5
body: <p>Working with angular 5 and <a href="https://github.com/ng-select/ng-select" rel="nofollow noreferrer">@ng-select</a> I found some issues binding to previously selected data(in edit forms an such as)</p>
  
  <blockquote>
    <p>Ngselect definition</p>
  </blockquote>
  
  <pre><code> &lt;ng-select
       [items]="contenedores$ | async"
       bindLabel="numero"
       bindValue="id"
       [(ngModel)]="embarqueContenedor.contenedor"&gt; 
   &lt;/ng-select&gt;
  </code></pre>
  
  <p>From the api I serialize the entity this way:</p>
  
  <blockquote>
    <p>Received from server (json)(this is from the model)</p>
  </blockquote>
  
  <pre><code>{
      "id": 1,
      "numero": "dsvsd",
      "dimension": 234,
      "tipoContenedor": "324",
      "contenedorEmbarques": [],
      "text": "dsvsd",
      "value": 1,
      "name": "dsvsd",
      "createdAt": "2018-03-26T12:44:48-04:00",
      "updatedAt": "2018-03-26T12:44:48-04:00"
  }
  </code></pre>
  
  <p>also I fill the ngselect with the items. I received from the server an array with objects like above(actually are the same entity so they are serialized the same way)</p>
  
  <p>Following <a href="https://github.com/ng-select/ng-select/blob/master/demo/app/examples/bindings.component.ts" rel="nofollow noreferrer">this doc</a> and <a href="https://stackoverflow.com/questions/43543745/data-binding-failed-in-ng2-select">this one</a> I tried to use both so I add some extra serialized fields(ummaped) and got the above json (text=name=numero,id=value). The problem is that is not working at all, still getting this error from ng-select.js each time I had a selected choice:</p>
  
  <blockquote>
    <p>Binding
    object({"id":2,"numero":"dfdhdf","dimension":324234,"tipoContenedor":"324324","contenedorEmbarques":[],"text":"dfdhdf","name":"dfdhdf","value":2,"createdAt":"2018-03-26T12:44:48-04:00","updatedAt":"2018-03-26T12:44:48-04:00"})
    with bindValue is not allowed.</p>
  </blockquote>
  
  <p>The objects have the same and required attributes but still not work</p>
  
  <p>Any help? </p>