I don’t know, you have to tell us if this works or not. I don’t even know what could “not work” here as I see only a lot of code without any explanation, error message or any other context.
Not sure if they’re relevant, but noticed a few things.
Could creating a div element on a list of *ngFor’s be a possible cause?
If not, your first list, ‘categorie’ has an ion-label holding each categorie.nom.
your second list has no ion-label holding formation.nom.
I personally have no idea if it matters, just an observation. But, if i’m not wrong, an ionic list of ‘button ion-item’ will
create a label for each item automatically. It’s possible you have a label inside of a label.
your two div id’s are name after their opposite *ngFor’s. categorie of categories has div id=“formations”. formation of formations has div id=“categorie”. If not on its’ own, maybe that fact combined with some scss coding you did could be causing it?
Thanks to @jaydz for making me notice the id properties. Those have to be unique document-wide, so they cannot be present on things inside a loop. Once the loop has more than one element, your document will become invalid.