I'm trying to use the cord-plugin-globalization plugin but I'm bumping my
little experience with JavaScript.
xhtml:
<div>{{ item.valor | formataValor }}</div>
filter.js:
app.filter('formataValor',function(){
return function(valor){
console.log('globalization: '+valor)
navigator.globalization.numberToString(
valor,
function (number) {
console.log('numero formatado:' + number.value);
return number.value;
},
function () {
console.log('erro de formatacao de valor');
},
{type: 'currency'}
);
}});
The console output is:
"globalization: 123.4"
"numero formatado: 123,40"
but the screen is blank.
--
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.