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

164
Views
Firebase devolvió el valor que no se procesa en ejs

En mis ejs tengo este código:

 <% for(var bill in ChildData){ %> <tr> <td><%= bill.id %></td> <td><%= bill.Phone %></td> <td><%= bill.Amount %></td> <td><%= bill.Purchase_Date %></td> <td>View Details</td> </tr> <% } %>

En mi nodo tengo

 app.get("/viewbill", function(req,res){ database.once("value", function (snapshot) { res.render('viewbills', {ChildData: snapshot.val()}); }); })

Sin embargo, en la página obtengo una captura de pantalla de la salida que obtengo

Aunque lo intento obtengo el mismo resultado

 <td><%- JSON.stringify(bill.id) %></td>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cambiar el código ejs a esto me dio la salida

 <% Object.keys(ChildData).forEach(function(key) { %> <tr> <td><%- ChildData[key].id %></td> <td><%- ChildData[key].Phone %></td> <td><%- ChildData[key].Amount %></td> <td><%- ChildData[key].Purchase_Date %></td> <td>View Details</td> </tr> <% }); %>
about 4 years ago · Juan Pablo Isaza 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!