I'm trying to repeat a nested object and I have a checkbox with a value of true or false.
Here's my code:
<accordion-group
*ngFor='let brand of products'>
<div *ngFor='let product of brand.products'>
<div>
<input type="checkbox" id="{{product.name}}" ngControl="{{product}}" ([ngModel])="product.checked">
<label
attr.for="{{product.name}}"
id="{{product.description}}"
class="{{product.description}}"
(click)="onCheck(model)">
</label>
</div>
</p>
</div>
</accordion-group>
Plunker: http://plnkr.co/edit/IItxHiXkpocUjLG6NhMy?p=preview -- see that the checkbox doesn't check when the quantity value is updated. I can't get ngModel to work correctly.