Using Angular 8, I have the following:
<ng-container *ngIf="(count$ | async) as count; else loader">{{count}}</ng-container>
<ng-template #loader>
loading
</ng-template>
The variable count$ is an Observable<number> ...
When count$ value is 1, 2, etc the value is correctly displayed.
But when the count$ value is 0 it shows only loading.
Any idea why?