How to access an object inside iteration of array in express handlebars | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How to access an object inside iteration of array in express handlebars

29th Oct 2021, 1:49 PM
MUNAVIR AHAMMED
MUNAVIR AHAMMED - avatar
2 ответов
+ 2
For example
29th Oct 2021, 2:06 PM
Pariket Thakur
Pariket Thakur - avatar
+ 1
{{#each product}} <button onclick="addToCart('{{this._id}}','{{user._id}}')>Add To Cart </button> {{/each}}
30th Oct 2021, 4:53 PM
MUNAVIR AHAMMED
MUNAVIR AHAMMED - avatar