Answers for "if condition angular"

3

ngif using multiple elseif

<ng-container *ngIf="foo === 1;else second"></ng-container>
<ng-template #second>
    <ng-container *ngIf="foo === 2;else third"></ng-container>
</ng-template>
<ng-template #third></ng-template>
Posted by: Guest on October-05-2020
0

if angular

<div *ngIf="condition">Content to render when condition is true.</div>
Posted by: Guest on February-09-2021

Code answers related to "if condition angular"

Browse Popular Code Answers by Language