mardi 14 août 2018

How to check all previous checkbox in angular 6

when i click on a checkbox i would like to check also all the previous checkbox and uncheck all the next one, how could i achieve this ?

Here how i generate my checkboxes

                <div *ngFor="let check of feature.tests; let i = index" class="col-md-12">
                    <mat-checkbox></mat-checkbox>
                </div>




Aucun commentaire:

Enregistrer un commentaire