How to select json item un handlebar

2651 views javascript
0

How can I select an element in a json array in Handlebarjs I tried navigating the each but the position of the element in the array. Json array

answered question

Please post your code in text and not in an image.

1 Answer

4

#each takes an array to iterate over, so passing it media.thumbnails[1] won't work, as that is the second object in the array. Try passing it the array media.thumbnails

posted this

Have an answer?

JD

Please login first before posting an answer.

Ads

Categories