Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
¿Cómo filtrar la tabla con otro conjunto de matrices, incluida la actual?

Estoy trabajando en un antiguo proyecto angular.js en el que quiero filtrar una tabla en función de otros conjuntos de matrices, incluido el primero. ¿Cómo puedo lograr eso?

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

en la mesa tengo -

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

Ahora, tengo otro conjunto de matrices por el cual también quiero filtrar.

$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>

Si escribo BYC, debería aparecer la fila relacionada con BYC. El problema es cómo puedo fusionar estas 2 matrices y usar el filtro. ¿O hay alguna otra forma en la que pueda usar dos matrices en el filtro?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!