title: Select dynamic ngFor item property set into @input decorator
body: <p>On my Angular 6 code, i try to create my select component. </p>
  
  <pre><code>&lt;ng-select [(ngModel)]="selecteditemid"&gt;
     &lt;ng-option *ngFor="let item of items" [value]="item.id"&gt;
         {{item.inputfield}} &lt;---- ERRORE
     &lt;/ng-option&gt;
  &lt;/ng-select&gt;
  </code></pre>
  
  <p>On @Input() I have inputfield , e Key of items property...How do you do to create item.myinputfield?</p>
  
  <p>my items 1:<br>
      [{
         "id": 1,
         "name": "Kevin",
      },
      {
         "id": 2,
         "name": "Jordan"
      }
      ]</p>
  
  <p>my items 2:<br>
      [{
         "id": 1,
         "hobby": "Read Book",
      },
      {
         "id": 2,
         "hobby": "Music"
      }
      ]</p>
  
  <p>On first case i want to display name property on i set the input with name; on second case i would to set input with hobby property of json data. My @Input() is the property on items. See above code when display inputfield the item is blank.</p>
  
  <p>Thank's in advanced for help!. Marco.</p>