{"action":"reopened","issue":{"url":"https://api.github.com/repos/aurelia/framework/issues/120","labels_url":"https://api.github.com/repos/aurelia/framework/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/framework/issues/120/comments","events_url":"https://api.github.com/repos/aurelia/framework/issues/120/events","html_url":"https://github.com/aurelia/framework/issues/120","id":82018281,"number":120,"title":"Inside repeat, $index returns the event instead of the index of the item","user":{"login":"joelkinzel","id":1746278,"avatar_url":"https://avatars.githubusercontent.com/u/1746278?v=3","gravatar_id":"","url":"https://api.github.com/users/joelkinzel","html_url":"https://github.com/joelkinzel","followers_url":"https://api.github.com/users/joelkinzel/followers","following_url":"https://api.github.com/users/joelkinzel/following{/other_user}","gists_url":"https://api.github.com/users/joelkinzel/gists{/gist_id}","starred_url":"https://api.github.com/users/joelkinzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelkinzel/subscriptions","organizations_url":"https://api.github.com/users/joelkinzel/orgs","repos_url":"https://api.github.com/users/joelkinzel/repos","events_url":"https://api.github.com/users/joelkinzel/events{/privacy}","received_events_url":"https://api.github.com/users/joelkinzel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-28T16:36:21Z","updated_at":"2015-05-28T17:06:26Z","closed_at":null,"body":"When iterating over a collection in the view using `repeat.for` the docs state you can use `$index` in order to get the index of the item in the collection. However, when I tried to do that, the only thing I could get back as the event. \r\n\r\nExample Gist: \r\nhttps://gist.github.com/joelkinzel/bd7826ccf28cadf28540\r\n\r\nIn this case, `$index` comes back as undefined. If I remove the `$event` attribute from the view and the corresponding code from the view-model, I still get the event and not the index. "}}