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

248
Views
lista angular2 canalizado/filtrado ngPara obtener resultados

Obtuve la página ng2 con varios anidados * ngFor cada uno con tuberías. Quiero obtener la lista de elementos internos para realizar acciones en todos ellos.

Algo como esto:

 <div *ngFor="let a of b | x |y | z"> <div *ngFor="let c of a | x |y | z"> <div *ngFor="let d of c"> <div [service]="(d.item|async)"></div> </div> </div> </div>

Quiero enumerar todos los d.item en una sola lista y llamar a un método en él.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

encontró una solución

 export class component { @ViewChildren('myVar') createdItems; showChildren() { console.log(this.createdItems.toArray().length); } }
 <div *ngFor="let a of b | x |y | z"> <div *ngFor="let c of a | x |y | z"> <div *ngFor="let d of c"> <my-component #myVar [service]="(d.item|async)"></div> </div> </div> </div>

over 4 years ago · Santiago Trujillo Report
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!