angular conditional pipe ng for code example
Example 1: 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))"
Example 2: angular conditional pipe
// Use ternary operator to be able to use a pipe on a certain condition
{{variable.value ? (variable.text | SomePipe) : (variable.text | pipe2)}}