if statement in angular 8 code example
Example 1: ng if else
<div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
<ng-template #elseBlock>Content to render when condition is false.</ng-template>
Example 2: if angular
<div *ngIf="condition">Content to render when condition is true.</div>
Example 3: ng if
<div *ngIf="condition">