Reputation: 657
Is there a way to conditional process an observable data through a custom pipe in an ngIf
I can do something like
<div *ngIf="dataFields$ | async | customPipe as fields ">
However, I want to have a condition before using customPipe
<div *ngIf="dataFields$ | async | <condition> ? customPipe as fields">
I only have if
condition, no else
block needed. But, I cant figure out whether this functionality exists or not.
Upvotes: 0
Views: 507