I have a little project on AngularJS
with a table that shows lost pets. The application has to allow you to search for lost pets by a certain breed, and it occurred to me to put a <input type="text">
in form
it so that the user enters the breed, and the search is carried out (don't see the visual part, I Bootstrap
still have to learn).
<input type="text">
My idea is to remove that "Search" button and make it update the information by itself
as the user writes the characters . Is there any way to achieve this? I've been searching but didn't find anything that solves my problem.
Here are the files I work with:
and the service ( MascotaService
) that consumes MainController
:
Use
filter
angular, here you can find more information: https://docs.angularjs.org/api/ng/filter/filterAnd please, for the next copy and paste your code so I can help you with it.