Using extra parameter in ngSwitchCase

后端 未结 1 1334
刺人心
刺人心 2021-01-29 13:46

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

相关标签:
1条回答
  • 2021-01-29 14:07

    Create another ng-container inside with the loading condition.

    <ng-container [ngSwitch]="i">
        <ng-container *ngSwitchCase="0">
            <ng-container *ngIf="loading">
                // do stuff
            </ng-container>
        </ng-container>
    </ng-container>
    
    0 讨论(0)
提交回复
热议问题