Please check out the code attached
http://jsbin.com/atuBaXE/2/
I am trying to access the index using {{@index}} but not seems to be compiling. I think handlebars supports that
{{#each item in model}}
{{@index}}
{{item}}
{{/each}}
It is not working out for, I can't figure out if the {{@index}} is supported or not
I am using
- Ember.VERSION : 1.0.0
- Handlebars.VERSION : 1.0.0
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…