Is there a way to dynamically change the country flag icon displayed on an element using the flag-icon stylesheet? This CSS provides country flags based on ISO codes, like so:
<span class="flag-icon flag-icon-gr"></span>
This code would display the Greek flag (ISO code GR).
But how can I update the two-character ISO code dynamically? For example:
<span class="flag-icon flag-icon-{{un_country}}"></span>
Or maybe like this:
<span [className]="'flag-icon flag-icon-{{un_country}}'"></span>