Hello I am currently working with Angular/TS to dynamically render different pricing cards. I am running into many situations where I need to dynamically render text. Is it better to handle this logic directly in the html?
For example:
<h1>
{{ option.frequency === "YEARLY" ? ("YEARLY") : ("MONTHLY") }}
</h1>
Or is it better to handle the logic in the component itself. Something like:
<h1>
{{ getFrequency(option) }}
</h1>