let suppose I am accessing and showing data in html like this
{{whole_data?.age_range ? whole_data?.age_range : '-'}}
Now problem here is, if in case whole_data?.age_range
is evaluated to 0
or null
it will show -
always, except expression value is non zero or not null,
My question is
why so (is zero is treated as false in this case) ?
what is the alternate for the same ?
PS:- I don't want to use condition especially for checking value is zero or not, because this syntax I am using 1000 of times in my code