You can change the background color using [style.backgroundColor] :
<i class="icon" [style.backgroundColor]="item.bgcolor"></i>
Unless, of course, the line in item.bgcolor is a valid css color string:
#FFFFFF white rgb(255,255,255) rgba(255,255,255,1)
Which is not in your case. You are missing the lead # , and you must change your list of products to this:
items: [ { bgcolor: '#fb9667', img: 'airTicket', category: 'Air tickets' }, { bgcolor: '#000000', img: 'airTicket', category: 'Beauty/Fitness'}, { bgcolor: '#0b9660', img: 'airTicket', category: 'Bike'} ]
Pierreduc
source share