ng-repeat does not show blank values

0

I have the following code:

 <input type="search" class="form-control" placeholder="Busca por motivo" ng-model="search.motivo" >

<tr ng-repeat="item in vm.listaDesbloqueio | filter:search">
                        <td><input type="checkbox" ng-model="item.checkbox" /></td>
                        <td>{{item.data | date: "dd/MM/yyyy"}}</td>
                        <td>{{item.hora | formatTime}}</td>
                        <td>{{item.motivo}}</td>
                    </tr>     

But when I delete all the letters in the search field, I do not see the records with blank or null reason, would anyone know how to do so that the records with white or null appear in the subject?

    
asked by anonymous 06.06.2018 / 19:23

1 answer

0

To do this you need a button to reset your search object to null, since filling in it gets a value:

<button data-ng-click="search = null">Limpar</button>
    
06.06.2018 / 20:28