First of all, want to emphasize that I had already have a look at many pages e.g. Two switch case values in angular but they cannot fix my problem.
I have the following
Create another ng-container inside with the loading condition.
ng-container
loading
<ng-container [ngSwitch]="i"> <ng-container *ngSwitchCase="0"> <ng-container *ngIf="loading"> // do stuff </ng-container> </ng-container> </ng-container>