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