Dynamic form

0

I have the following code that fills me the checkboxes dynamically in my form. The printing is done well the problem is that I get an error in the console.

<div class="form-check" *ngFor="let ce of caracteristicas; let i = index;"  [formGroup]="i">
<label class="form-check-label" >
<input class="form-check-input" [value]="index" name="checked" type="checkbox" [checked]="checked"  [(ngModel)]="checked" ngControl="sitioAplica"
                                                               #sitioAplica="ngModel"
                                                               (change)="onCheck($event,i,ce.id)"> {{ce.descripcion1}}
<span class="form-check-sign"><span class="check"></span>
</span>
</label>
</div>**texto en negrita**

This is what prints me and it's okay l

    
asked by cristian tarazona 19.10.2018 в 23:21
source

0 answers