angular ngfor conditional pipe code example
Example: angular ngfor conditional pipe
//use ternary operator on your list and apply the pipes you need
*ngFor="let a of (condition ? (arr | pipe) : (arr | pipe2))"
//use ternary operator on your list and apply the pipes you need
*ngFor="let a of (condition ? (arr | pipe) : (arr | pipe2))"