Using *ngIf else in Angular
This below example will show you how to use
*ngIf else in Angular.
<div *ngIf="isActive;else other_content"> content here ... </div> <ng-template #other_content>other content here...</ng-template>
In the above code, if
isActive property is true it will render the content inside
div block else
it will render the content inside