{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11259","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11259/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11259/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11259/events","html_url":"https://github.com/emberjs/ember.js/issues/11259","id":79864079,"number":11259,"title":"Adding itemController to an each block changes iteration context","user":{"login":"alco","id":207748,"avatar_url":"https://avatars.githubusercontent.com/u/207748?v=3","gravatar_id":"","url":"https://api.github.com/users/alco","html_url":"https://github.com/alco","followers_url":"https://api.github.com/users/alco/followers","following_url":"https://api.github.com/users/alco/following{/other_user}","gists_url":"https://api.github.com/users/alco/gists{/gist_id}","starred_url":"https://api.github.com/users/alco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alco/subscriptions","organizations_url":"https://api.github.com/users/alco/orgs","repos_url":"https://api.github.com/users/alco/repos","events_url":"https://api.github.com/users/alco/events{/privacy}","received_events_url":"https://api.github.com/users/alco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-23T14:40:27Z","updated_at":"2015-06-04T16:31:15Z","closed_at":null,"body":"Hi. I discovered this issue a week ago and brought it up on IRC but there doesn't seem to be a report for it yet.\r\n\r\nBack then I used a random tutorial but today I have encountered the same issue while following the official Getting Started guide.\r\n\r\nOn [this page](http://guides.emberjs.com/v1.10.0/getting-started/marking-a-model-as-complete-incomplete/), the guide shows how to add `itemController` to an each block in order to wrap each list item in its own controller. Once I do that (after having followed the guide from the beginning, using Ember CLI), I get the following error in the console:\r\n\r\n> Uncaught Error: Assertion Failed: The value that #each loops over must be an Array. You passed mini-todo@controller:array:, but it should have been an ArrayController\r\n\r\nAnd nothing is displayed on the page. I tried all possible combinations of arguments in the each block (`todo in model`, `model`, `model as |todo|`) to no avail.\r\n\r\nThe tutorial I mentioned before used Ember 1.8.0 and it didn't have this issue. I wasn't able to check Ember 1.9.0 due to some problem with getting it to run on Ember CLI. So the earliest version I have seen this issue in is 1.10.0. And version 1.12.0 still has the issue.\r\n\r\nRight before posting this report I thought I had discovered a workaround: instead of adding `itemController=\"todo\"` to the each block, I added it on the `TodosController` in JS. That made the error go away. However, when I add an action on an input tag inside `<li></li>`, that action is handled by the parent `TodosController` (whereas I would expect it to be handled by `TodoController`)."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/108958278","html_url":"https://github.com/emberjs/ember.js/issues/11259#issuecomment-108958278","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/11259","id":108958278,"user":{"login":"locks","id":32344,"avatar_url":"https://avatars.githubusercontent.com/u/32344?v=3","gravatar_id":"","url":"https://api.github.com/users/locks","html_url":"https://github.com/locks","followers_url":"https://api.github.com/users/locks/followers","following_url":"https://api.github.com/users/locks/following{/other_user}","gists_url":"https://api.github.com/users/locks/gists{/gist_id}","starred_url":"https://api.github.com/users/locks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locks/subscriptions","organizations_url":"https://api.github.com/users/locks/orgs","repos_url":"https://api.github.com/users/locks/repos","events_url":"https://api.github.com/users/locks/events{/privacy}","received_events_url":"https://api.github.com/users/locks/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T16:31:14Z","updated_at":"2015-06-04T16:31:14Z","body":"`\r\nrwjblue [5:29 PM] \r\nitemController with ember-cli is broken unless you remove that addon\r\n\r\nrwjblue [5:29 PM]\r\nhttps://github.com/cibernox/ember-disable-proxy-controllers`\r\n\r\nCan you confirm @alco ?"}}