<div>{{a.value | number:0}}</div>
this is what I have. I would like to display just "" if the value is 0. Anyway I can do that within the same line? or I have to filter it out in a controller.
Thanks
Pretty ugly but you can do it like this:
<div>{{a.value ? (a.value | number:0) : '' }}</div>
Not sure if there is more clearer way though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With