I'm trying to have an independent input for each element that I display thanks to *ngFor in Angular2, I try this but it doesn't work :
<li *ngFor="let child of childArray; let i=index"> <input type="checkbox" id="{{child.name}}" style="display:none;">
<label for="{{child.name}}">
<h1>{{child.name}}</h1>
</label></li>
Of course {{child.name}}
is correctly displayed but it seems I can't use it as a variable in tag component. Does someone have an idea to manage it ?
Thanks by advance !