1
How do I Mask a text input with the format xx/xx/xxxx xx:xx:xx using angular? It would be the day, month, year, hour, minute and seconds.
<div class="form-group filtro">
<label class="" for="endDate">Data de Criação</label>
<input type="text" class="form-control" ng-model="criterioDeBusca.dataCriacao" ui-mask="99/99/9999 99:99:99" ui-mask-placeholder-char="_"/>
</div>
<table>
<tbody>
<tr dir-paginate="atividade in atividades | filter:criterioDeBusca | orderBy:criterioDeOrdenacao:direcaoDaOrdenacao|itemsPerPage:5">
<td>{{atividade.dataCriacao | date:'dd/MM/yyyy HH:mm:ss'}}</td>
</tr>
</tbody>
</table>
Is that so? https://answall.com/q/48598/5878
– Woss
I used ui-Mask to work with masks in Angularjs: https://github.com/angular-ui/ui-mask
– Gabriel Berlanda