Angular: conditional custom pipe in div ngIf*

411 Views Asked by At

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.

0

There are 0 best solutions below