Is it possible to assign (areShipsExpanded$ | async) to variable without *ngIf? Because in case that this is flag true
/false
when I have: *ngIf="(areShipsExpanded$ | async) as flag"
then button is not displaying in case of false.
And I would like something like this:
<button *let="(areShipsExpanded$ | async) as flag"
(click)="expandAllShips(flag)">{{(flag ? "Collapse" : "Expand"}}
</button>