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

178
Views
Cannot read property 'toUpperCase' of undefined with the ERROR on *ngFor

I am trying to declare an index in *ngFor but I am getting a type error and it is saying

<div class='text' *ngFor='let item of blogs; let i = index | async | filter : 'feat' : true'>

If I take out let i = index it works fine, but I want to use the index, so I can apply css classes to the elements. Looking at documentation, this is how you are supposed to do it.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It pipe should come before the index

<div class='text' *ngFor='let item of blogs | async | filter : 'feat' : true'; let i = index >
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!