I have this model:
"PRIORITY": [{
"id": 651,
"label": "Haute",
"colorCode": "#ff001e",
"active": true
},
{
"id": 652,
"label": "Moyenne",
"colorCode": "#ffbe33",
"active": true
}];
And I must show for every option a small square before label value with background-color: colorCode.
In view, I have this:
<select
class="full-width"
ng-model="dossier.priorityId"
ng-options="item.id as item.label for item in reference.PRIORITY"
ng-disabled="dossier.statut !== 'EN_COURS_CREATION'"
epf-options-class>
<option value=""></option>
</select>
It's possible to do this in angular 1?
Thanks!