I wanted to have some dynamic styling to accommodate incoming user badges. It works in Rails but wanted to do something in Angular. Thoughts?
<div ng-repeat="event in events">
<style ng-repeat="product in event.products">
.product-id-{{ product.id }} .fa-gift { display: inline-block !important; }
.product-id-{{ product.id }} .fa-star { display: inline-block !important; }
.product-id-{{ product.id }} .{{ product.ticket_type }} { display: inline-block !important; }
</style>
<style ng-repeat="product in event.products" ng-if="product.ticket_type == 'golden'">
.product-id-{{ product.id }} .{{ product.ticket_type }} { display: none !important; }
.product-id-{{ product.id }} .icon-crown.golden { display: inline-block !important; }
</style>
<style ng-repeat="product in event.products" ng-if="product.ticket_type == 'vip'">
.product-id-{{ product.id }} .{{ product.ticket_type }} { display: none !important; }
.product-id-{{ product.id }} .icon-crown.golden { display: none !important; }
.product-id-{{ product.id }} .fa-diamond.vip { display: inline-block !important; }
</style>
</div>
This doesn't currently resolve values.
