They asked me to add a search filter, but the thing is that it is done with Angular
the application and I know very little about that.
In the BDD
there is a table called guia
with a field called standby
which generates a 1
and 0
(yes and no).
I got the data to put it in a div
as I put it at the end.
My question is:
How can I do the search filter when div
is activated with select
?
<select class="form-control" name="standby">
<option value="" disabled selected>Guías en standby</option>
<option value="">Todas</option>
<option value="1">Si</option>
<option value="0">No</option>
</select>
And when pressing this button, search depending on the options (because they are several filters).
<button ng-click="buscar()" class="btn blue">Buscar</button>
Here it shows the result, depending on a checkbox
that I have in another place, if this checkered shows them guia en standby
and if you remove the check the div
is removed.
<div ng-if="guia.standby==1">
<div class="label label-default label-sm">Guía en standby</div>
</div>
When you press Si
in select
, show only the one that says guide in standby
.