Is it possible to reference the value of the implicit iterator {{.}} from inside an Ember.View?
e.g.
View Template
{{#each simple_old_array_of_numbers}}
{{view App.Subview}}
{{/each}}
View Code
App.Subview = Em.View.extend({
template_name: 'subview_template',
didInsertElement: function() {
//do some logic based on the implicit iterator
//have tried this.get('.'), but that didn't work
}
});
I don’t know if I understand well, but you can do something like