I am using ioni3 my *ngswitchcase is not working properly

Hello everyone
whenever i am using hardcoded switch cases it works fine
But when i try to make the segments in *ngfor loop then it’s not working and match value with switch case

Please advice me what to do .
Best Regards