Is it possible in Angular 2 to apply a pipe under condition?
I would like to do something like:
{{ variable.text | (variable.value ? SomePipe : OtherPipe) }}
If not, what is the preferred way to achieve this effect?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…