Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to get elements of nested arrays in handlebars?
There is data:
var birthday = {
day: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
month: [[1, 'Января'], [2, 'Февраля'], [3, 'Марта'], [4, 'Апреля'], [5, 'Мая'], [6, 'Июня'], [7, 'Июля'], [8, 'Августа'], [9, 'Сентября'], [10, 'Октября'], [11, 'Ноября'], [12, 'Декабря']]
}
{{#each month}}
{{#each this}}
<option>{{@index}} {{this}}</option>
{{/each}}
{{/each}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question