ternary operator in angular interpolation code example
Example: ternary operator angular template
<span> {{selectedSport.key === 'walking' ? 'steps' : 'km'}} </span>
<span> {{selectedSport.key === 'walking' ? 'steps' : 'km'}} </span>