div
CodePudding user response:
You can use like this:
<div *ngIf="your condition"></div>
CodePudding user response:
if you use simply if
condition
<div *ngIf="condition">
Condition content
</div>
if you use if
with else
condition
<div *ngIf="condition; else secondCondition">
Condition content
</div>
<ng-template #secondCondition>
secondCondition content
</ng-template>