Struggling with something seemingly simple...
All I need is for my span
tag to take on a class called "store" from a variable in my .ts file
:
<span [ngClass]="{'flag-icon': true, 'my_property_in_TS': true}"></span>
I've attempted solutions like these:
<span [ngClass]="{'flag-icon': true, ${lang.codeIcon}: true}"></span>
<span [ngClass]="{'flag-icon': true, lang.codeIcon: true}"></span>
This should be an easy fix... Any ideas on how to achieve this?