<div *ngIf="show; then thenBlock; else elseBlock"></div> <ng-template #thenBlock>show === true</ng-template> <ng-template #elseBlock>show === false</ng-template>