angular 10 if else on template using ternary operator code example
Example: ternary operator angular template
<span> {{selectedSport.key === 'walking' ? 'steps' : 'km'}} </span>
<span> {{selectedSport.key === 'walking' ? 'steps' : 'km'}} </span>