48
rated 0 times
[
54]
[
6]
/ answers: 1 / hits: 15589
/ 6 Years ago, sun, june 10, 2018, 12:00:00
Here is my html template
<mat-card>
<mat-card-content>
<h2 class=example-h2>Select Employee</h2>
<section class=example-section>
<mat-checkbox [(ngModel)]=checked>Select All</mat-checkbox>
</section>
<section class=example-section *ngFor=let r of emp>
<mat-checkbox class=example-margin [(ngModel)]=checked>{{r.name}}</mat-checkbox>
</section>
</mat-card-content>
</mat-card>
This is code is not working properly, if I click on select all, its selecting all the check boxes, if I select on individual check box, its also selecting
all the items.
Please help.
More From » angular