Sorry if this is a question about Nob, I am new to Ember.js and trying to understand some things. In Ember.js, let's say I have a list of objects in an array controller and rendering a view for each specific object, if the user clicks on a DOM element belonging to a specific object, how can I determine which object the element was clicked on?
Example
ul#mainChat {{#each chat in App.chatController}} {{#view App.MainChatView tagName="li"}} li | Example {{/view}} {{/each}}
If I have 5 objects in the chat controller array and 5 li, the user clicks on one, how can I determine which object belongs to.
Thanks!
source share