I am trying to get the value from Public api, and binding those value in the html but I need to show two different icons for two different values which I am binding using ngFor in the html.
My Array Response
ArrayValue
:
Array(2)
0
:
{icon: 'fas fa-<insert font awesome icon name>', text: 'Flowers'}
1
:
{icon: 'fas fa-<insert font awesome icon name>', text: 'Animals'}
HTML:
<div class="variety">
<div *ngFor="let show of ArrayValue">{{show.text}}</div>
</div>
How can I add two different font awsome icons for show.text(Flowers) and show.text(Animals) in the above ngFor, any answers ?