Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

111
Vistas
How to filter table with another set of array including the current?

I am working on a old angular.js project where I want to filter a table based on some other sets of array, including the first. How can I achieve that ?

Example: $scope.devFilters =[]; $scope.filList=[ {"Id": "122h33jjhuii2000","Fleet": "009"},{"Id": "122h222iyui2001","Fleet": "076"}];

in table I have -

    <tr ng-repeat="dev in (filList = (filList | orderBy:sortField:reverseSort | filter:devFilters | limitTo:totalDisplayed ))">
    <td>dev.Id</td>
    <td>dev.Fleet</td>
    </tr>

Now, I have another set of array by which I want to filter as well.

$scope.conf = [{"Reset":"BYC","Fleet":"kio000"},{"Reset":"DDD","Fleet":"?"}]

<div class="filterf">
            <h4>Search by Reset</h4>
            <input ng-model="devFilters.Reset" ng-change="search();" />
</div>

If I type BYC then the row related to BYC should appear. The problem is how I can merge these 2 array and use filter ? Or is there any other way where I can use two array in filter ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda