Angular ng untuk pipa bersyarat

//use ternary operator on your list and apply the pipes you need
*ngFor="let a of (condition ? (arr | pipe) : (arr | pipe2))"
Selfish Spider