I have a component which has this child:
<fb-customer-list (inSearchMode)="listIsInSearchMode = event$"></fb-customer-list>
As you can see, it listens to an event from that child, which is just a boolean value (indicates whether the child changed modes).
In the parent, I am trying to hide a div based on this boolean:
<div class="center fade" *ngIf="!listIsInSearchMode">
But this only works the first time the boolean changes. After that, this div is always hidden. I know that ngIf removes directly from the DOM, but surely when the event becomes true again, it should be re-added.
I also tried applying style.visibilty based on the bool, and also using the hidden attribute...but both give the same result.
I can see the event changing from true to false in the child, but it seems after the first time the parent does not?