Issue with segments that use ngFor. EDIT: Found the solution

Hey all,

I am trying to dynamically create a row of segments using ngFor. I have a hard wired segment called all with a value that equals an empty string. When I use ngFor to create the rest of the segment buttons I am only able to select the All and the first segment. The other ones do not work, I select them and they do not select.

See plunker below.

https://embed.plnkr.co/nRYzH2Ux9MxxHDiC5RrK/

EDIT: It appears that calling this.segment.ngAfterContentInit(); fixes the issue. It’s not very nice though. Is this going to be fixed in a later release?