title: Angular 2, primeng :Two way binding in nested *ngFor and ngModel in Primeng in *ngFor
body: <p>I have a bunch of questions in Angular 2</p>
  
  <p>I have created a demo to show you the behaviour </p>
  
  <p>Stack : Anglar 2, Primeng</p>
  
  <p><a href="https://stackblitz.com/edit/primeng-template-5hrvte" rel="nofollow noreferrer">https://stackblitz.com/edit/primeng-template-5hrvte</a></p>
  
  <p>Question 1 :</p>
  
  <p>I have a json file, through that i have created dynamic UI like checkbox and inputs and populated checkbox options dynamically. Now, problem starts from here
  no ngModel is working  for comboBox, inputs or checkbox (i want to show default value)</p>
  
  <p><strong>Update</strong>
  Question 1  : I got the solution for it but still stuck on Question 2</p>
  
  <pre><code> [(ngModel)]="arrays.field[index].defaultValue" in input field
   [(ngModel)]="arrays.field[index].item[0].value" in dropdown
   [(ngModel)]=uiItems.defaultValue in checkbox {Refer ANS 1 soluton for it}
  </code></pre>
  
  <p>also add </p>
  
  <p><code>[name]="uiItems.id"</code> </p>
  
  <p>in order to populate default value</p>
  
  <p>Question 2 : How to make it two way binding in this scenario how do it get changed value objects? </p>