Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

nested condition in *ngIf in angular

<ng-container *ngIf="(value1 || value2); else showDefault">
    <ng-container *ngIf="value3!=null && value4==null; else showValue4">
    </ng-container>
    <ng-template #showValue4>
    </ng-template>
</ng-container>
<ng-template #showDefault>
</ng-template>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nested #condition #angular
ADD COMMENT
Topic
Name
3+6 =