Im trying to find ways to apply custom CSS to only one of the selected items in UISelect Multiple.
<ui-select id="productSelect" class="form-control" multiple ng-model="contractsHeader.ProductList" ng-click="addProductOpen()" on-select="onProductSelected($item)" on-remove="onProductRemoved($item)" ng-disabled="!selectedAdvertisers.selectedAdvertiser || !selectedAdvertisers.selectedAdvertiser.AdvertiserKey || selectedAdvertisers.selectedAdvertiser.AdvertiserKey== ' '" ng-required="true" autofocus>
<ui-select-match>{{getProductDisplayText($item)}}</ui-select-match>
<ui-select-choices ui-disable-choice="product.Product_Code == null" refresh="searchByTypes('Products',$select.search)" refresh-delay="0" repeat="product in products track by $index | filter:$select.search">
<div style="cursor:pointer;" ng-if="product.Product_Code == null && securitySettings.addOtherProducts" ng-click="addProductOpen($select, $event)"><{{product.Product_Description}}></div>
<div ng-if="product.Product_Code != null">{{product.Product_Description}} ({{product.Product_Code}})</div>
</ui-select-choices>
</ui-select>
here is an excerpt of UISelect-Match
<ui-select-match>{{getProductDisplayText($item)}}</ui-select-match>
I tried conditional ng-class to apply CSS to only one element but CSS class is never applied on that item.