管道运算符的优先级高于 JavaScript 三元运算符。
你应该始终使用括号来确保 Angular 按照你的意图评估表达式。
(condition ? a : b) | pipe
用自己的话写下这一站的结论。