{{.}}
内から暗黙のイテレータの値を参照することは可能Ember.View
ですか?
例えば
テンプレートを表示
{{#each simple_old_array_of_numbers}}
{{view App.Subview}}
{{/each}}
コードを表示
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
}
});