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.
#Help new on angular
6 messages · Page 1 of 1 (latest)
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.
i meen "the root group" I just want to see the headers at the top of the quote program but knowing that I use recursive it rewrites me every time the headers
<thead *ngIf="group === rootGroup" />., or, probably better to make your screen accessible, something like <thead [class.visually-hidden]="group !== rootGroup">.
I think it doesn’t work because the first group is considered as a subgroup, as a child
I rather think it doesn't work because you're not passing one of the inputs to the component: https://github.com/Mat-Mart/MesProjets/blob/main/src/app/app.component.html#L3. Make both inputs required, and you'll get an error from the compiler when you forget to pass them.