Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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))"
 
PREVIOUS NEXT
Tagged: #angular #ngfor #conditional #pipe
ADD COMMENT
Topic
Name
1+3 =