📜  角度条件管道 - TypeScript 代码示例

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

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