I have a following problem:
There is a Component A with a Subcomponent B.
<app-alert [response]="alertMessage"></app-alert>
Subcomponent B extends Ngb-alert component and has an template like:
<ngb-alert #selfClosingAlert id="selfClosingAlert" *ngIf="alertMessage" [type]="alertStyle" (closed)="alertMessage = ''">
{{ alertMessage }}
</ngb-alert>
When the alertMessage is empty alert is hidden but my Subcomponent B tag still takes up some space on the site. Generally I want Subcomponent B to be self-responsible. I searched a lot for the answer but found nothing.