Pass icon and name in ng-options

0

If someone can help me, but thanks! This is my code:

$scope.Moedas =[
          { id: 0, nome: "REAL", icon:"fas fa-dollar-sign" ,ativo: false },
          { id: 1, nome: "DOLAR", icon: "fas fa-dollar-sign", ativo: false },
          { id: 2, nome: "EURO", icon: "fas fa-euro-sign", ativo: false }      
        ];

<div class="form-group col-xs-6">
    <select class="" ng-model="Produto.moeda" ng-options="o.nome as o.nome | translate for o in Moedas" ng-enter="">
        <option value="" disabled>{{'SELECIONE_MOEDA' | translate}}</option>
    </select>
</div>
    
asked by anonymous 11.09.2018 / 21:30

0 answers