#Help new on angular

6 messages · Page 1 of 1 (latest)

livid sparrow
#

you will find below a github link with my angular/html program, I am still starting and I can not make it so that only the first group has the colon headers and the others do not.
forget the file with src index it is useless, it is especially the files "parent-table.component" that are important.

https://github.com/Mat-Mart/MesProjets

GitHub

Contribute to Mat-Mart/MesProjets development by creating an account on GitHub.

frank perch
#

What do you mean by the "first" group? If you mean "the root group", then test if the group is the same as the root group. If you mean "the first child group", then pass an additional input to your component indicating if the headers should be displays, and pass the value true in this input if the group to display is the first one.

livid sparrow
frank perch
#

<thead *ngIf="group === rootGroup" />., or, probably better to make your screen accessible, something like <thead [class.visually-hidden]="group !== rootGroup">.

livid sparrow
frank perch