0
I’m using AngularJS
and in my form I have some fields that need masks, so far I have managed to do, I used the ui.mask
.
var app = angular.module("empresaApp",['angularUtils.directives.dirPagination','ui.mask']);
my input was like this:
<input type="text" ng-model="empresa.nr_CNPJ" ui-mask="99.999.999/9999-99" />
However when I will enter the data, in this field for example is 22222222222222 and does not apply the mask, someone already had problem with it or knows how to solve it. I need to save in the database already with the mask?
Imported library? error in console? company.nr_CNPJ is set in controller?
– Felipe Duarte
Yes, I imported the library, there was no error in the console and the company field.nr_CNPJ is set yes
– JONATHAN MARQUES DA COSTA
At what point does this happen? , like it’s time to assign values to
nr_CNPJ
?– novic
i feather I need that when registering in the bank, he inform with the mask, hence I thought that just assigning this mask, the value would be sent to the bank with the mask
– JONATHAN MARQUES DA COSTA
The solution proposed by me helps?
– novic
actually no, keeps sending data to the bank without the mask
– JONATHAN MARQUES DA COSTA
Boy send the whole code your! let me see? I did the example ta showing your way, so there’s something wrong in the code!
– novic
I decided by forcing shipping by model
– JONATHAN MARQUES DA COSTA