mardi 1 novembre 2016

AngularJs Filter: Nothing should be displayed until i start a search

I am new to angular. I am following this http://ift.tt/2fd9rbe to make a simple search. So far its working good. But i want it to display nothing until i start a search that is, only when i start typing i should get the filtered output. I don't need the whole data to be displayed beforehand. is there any way to do that?

<tr ng-repeat="emp in employees | filter:query">
            <td></td>
            <td></td>
            <td></td>
        </tr>

emp.name company designation etc should not be displayed when the search box is empty.




Aucun commentaire:

Enregistrer un commentaire