Sanders, thanks for your time!
I am novice in the javascript.
I do not know working with this asynchronous method. How would the correct
way?
I do not know if I can do the formatting for the controller, because what
I'm showing is a list of values:
<ion-list>
<ion-item ng-repeat="item in items" ng-click="click(item)">
<div class="row">
<div class="col">{{item.valor | formataValor}}</div>
</div>
</ion-item>
</ion-list>
Besides, I'll need this value later to do calculations, so I can not
convert it to String (formatted value)
Regards,
Nilson Uehara
Em terça-feira, 23 de agosto de 2016 03:57:51 UTC-3, Sander Elias escreveu:
>
> Hi Nilson,
>
> Your filter is not returning anything. Your callback function has a
> return, but that doesn't propagate to your filter function. You need to
> rewrite your filter to s $statefull one, and handle the async nature of
> navigator.globalization.numberToString for yourself.
>
> It is by far easier en faster to handle this in your controller/service
> before displaying it in your template.
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.