2
I’m applying a filter on my page, it was working perfectly, only when I applied the mask to stay in the format dd/MM/yyyy HH:mm:ss he stopped filtering correctly, he understands that there is nothing corresponding, from the first number typed he can not find anything, return empty the list, as if it did not exist. Before applying the mask, if I manually typed dd/MM/yyyy HH:mm:ss (typing with the numbers and separations / and :) it would find the perfect match. The other fields continue filtering correctly.
<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 ui-mask-placeholder-char="_" />
</div>
-
<table>
<tr dir-paginate="atividade in atividades | filter:criterioDeBusca | orderBy:criterioDeOrdenacao:direcaoDaOrdenacao|itemsPerPage:5">
<td>{{atividade.codigo}}</td>
<td class="text-left">{{atividade.descricao}}</td>
<td>{{atividade.dataCriacao | date:'dd/MM/yyyy HH:mm:ss'}}</td>
</tr>
</table>
try adding model-view-value="true", along with ui-Mask, it may be that keep the object model solves
– Felipe Duarte
It worked!! only when I delete and type again it goes back to the same error, he understands that there is nothing, he knows what can be?
– Isa
Worse than I have no idea, I usually try to make filters manually by the Filters and masks by directives, if you want to put my solution but it is totally different
– Felipe Duarte
@Felipeduarte accept your solution yes, you can post?
– Isa
@Virgilionovic it comes as dd/MM/yyyy HH:mm ss:
– Isa
@Virgilionovic of ours, you imagine a possible solution?
– Isa