📜  angular ngfor 条件管道 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.594000             🧑  作者: Mango

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