📜  有条件的角管道 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:04.994000             🧑  作者: Mango

代码示例2
// Use ternary operator to be able to use a pipe on a certain condition 
{{variable.value ? (variable.text | SomePipe) : (variable.text | pipe2)}}