Hey guys !
I'm with a problem and can not find a solution , see if someone can help me.
I am using the "*ng-currency*" to format my valore currency , but he return-
"*NaN*" when the value of it is empty and it ends up breaking the sum of values
that do, eg ( 1 + *NaN* + 2).
So I created a filter , and works = D , but the filter does not put the value
in the input = /
*My filter*
app.filter('setZero', function ($filter) {
return function (input, places) {
if (isNaN (input)) {
return 0;
}
};
});
Can someone help me?
Sorry if there are spelling errors , I'm using Google Translate .
--
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.