I have a condition like this.
<div *ngIf="data$ | async as data; else loading">
I wanted to add additional condition into above statement, how am I able to do that?
<div *ngIf="data$ && isLoading | async as data; else loading" > error
<div *ngIf="data$ | async as data && isLoading ; else loading" > error
also for the | operator what is the name called I tried to google it but no result found. Or operator, signle line operator, line operator?
*ngIf="(data$ | async as data) && !isLoading ; else loading"? And the|is called pipe.Expected identifier or keyword expression expectedafterdataand betweenasync and asit says)expected