I have to Create a list of checkboxes dynamically so i have used *ngFor to iterate the array of objects everything is working fine till iteration. the problem is occured when i set the value of for
attribute in the label tag. angular has throw the error :
Can't bind to 'for' since it isn't a known native property angular2
new error message
Unhandled Promise rejection: Template parse errors: Can't bind to 'for' since it isn't a known property of 'label'.
<div *ngFor="#batch of batch_array">
<label for="{{batch.id}}">
<input type="checkbox"
[value]="batch.id"
id="{{batch.id}}"
(click)="batchSelectedEevent(batch.id)"/>
{{batch.batch_name}}
</label>
</div>
here is my plnkr showing error : http://plnkr.co/edit/aAQfWvHc7h7IBuYzpItO?p=preview
whats wrong here in my code ?