I am using AngularJS
and in my form I have some fields that need masks, until then I have already done it, I used ui.mask
.
var app = angular.module("empresaApp",['angularUtils.directives.dirPagination','ui.mask']);
My input looks like this:
<input type="text" ng-model="empresa.nr_CNPJ" ui-mask="99.999.999/9999-99" />
But when I enter the data, in this field for example it is 22222222222222 and does not apply the mask, someone has had a problem with it or knows how to solve it. Do I need to save in the database already with the mask?