Access attributes of the DOM elements from ember.js views
问题 How can I access attributes of DOM elements that are being inserted by ember.js view, from within the view itself. Here is a short example. Lets say I have the following cat.handlebars template: {{#collection contentBinding="App.catsController"}} <div class="cat" {{bindAttr id="view.content.id"}}></div> {{/collection}} which is used in this view: App.CatView = Ember.View.extend({ templateName: 'cat', catsBinding: 'App.catsController', didInsertElement: () -> #need to get the id of each DIV