How do I use ui-number-mask dynamically

0

I'm saving my value in a $ scope:

$scope.quantidadeCasasDecimais = 4

And trying to use this value, but it does not work:

ui-number-mask="{{quantidadeCasasDecimais}}"

Remembering that if I set the parameter statically it works:

ui-number-mask="4"
    
asked by anonymous 11.12.2018 / 21:03

1 answer

0

Just remove the keys, because it is a library already turned pro angularjs, for more information access the library documentation: link

ui-number-mask="quantidadeCasasDecimais"
    
12.12.2018 / 18:55