I am making a array
, but I want to change the value shown in the view according to some evaluations.
would be showing the values like this.
<div ng-repeat="valor in bonos">
<label>{{valor.nombre |filtro: myfuncion}}</label>
</div>
Then in my function I want to return a new value for valor.nombre
vm.myfunction = funcion(valorAntiguo){
return nuevoValor;
}