I have a table being populated by an ngFor.
I'm using something like:
{{ (item.attribute || "--" }}
to deal with null values and thats working fine however i have a field that displays a multiple so i add an "x" into it:
{{ (item.attribute + "x") || "--" }}
obviously the "x" is giving it a value hence even if the attribute is null the html is displaying an 'x' instead of my preferred '--'.
im thinking i need to maybe use ngIf but i cant get any implementation working. Anyone able to point me in the right direction?
Thanks in advance.