Use *ngIf
Directive with ng-template
associated with reference #refernece_name
<section *ngIf="isAllowed else otherSection">
Allowed Section
</section>
<ng-template #otherSection>
<section>
Other Section
</section>
</ng-template>
Top comments (0)