Quantcast
Channel: The Mozmonkey Blog » Code
Viewing all articles
Browse latest Browse all 9

Ember: Getting the index in #each loops

$
0
0
Unfortunately Ember’s version of handlebars does not support the {{@index}} value in a loop. If you do a google search you’ll find many people asking how to get this, without much help. The most frequent solution is to use the itemViewClass, which creates a nested view object for each iteration, which means you have to […]

Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images