I have this inside my code:
<div *ngIf="(listCount$| async) > 0 ">
but it won't pass the pipeline because it says
Object is possibly 'null' or 'undefined'.
in ts file:
readonly listCount$ = new BehaviorSubject<number | undefined>(undefined);
any help, can i do this in one line?