{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6294","labels_url":"https://api.github.com/repos/angular/angular/issues/6294/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6294/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6294/events","html_url":"https://github.com/angular/angular/issues/6294","id":125191539,"number":6294,"title":"[(ngModel)] can't bind to array elements (foo[0])","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T14:58:02Z","updated_at":"2016-01-06T18:41:22Z","closed_at":null,"body":"`<input type=\"text\" [(ngModel)]=\"values[0]\">` won't update model on input's value change:\r\n\r\nPlunker: http://plnkr.co/edit/HOdOeLTwYzyNke3DTWOl?p=preview"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/169415583","html_url":"https://github.com/angular/angular/issues/6294#issuecomment-169415583","issue_url":"https://api.github.com/repos/angular/angular/issues/6294","id":169415583,"user":{"login":"pe8ter","id":7235240,"avatar_url":"https://avatars.githubusercontent.com/u/7235240?v=3","gravatar_id":"","url":"https://api.github.com/users/pe8ter","html_url":"https://github.com/pe8ter","followers_url":"https://api.github.com/users/pe8ter/followers","following_url":"https://api.github.com/users/pe8ter/following{/other_user}","gists_url":"https://api.github.com/users/pe8ter/gists{/gist_id}","starred_url":"https://api.github.com/users/pe8ter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pe8ter/subscriptions","organizations_url":"https://api.github.com/users/pe8ter/orgs","repos_url":"https://api.github.com/users/pe8ter/repos","events_url":"https://api.github.com/users/pe8ter/events{/privacy}","received_events_url":"https://api.github.com/users/pe8ter/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T18:41:22Z","updated_at":"2016-01-06T18:41:22Z","body":"Change\r\n\r\n```typescript\r\n<input type=\"text\" [(ngModel)]=\"values[0]\"> => {{values}}\r\n```\r\n\r\nto\r\n\r\n```typescript\r\n<input type=\"text\" [(ngModel)]=\"values[0]\"> => {{values[0]}}\r\n```\r\n\r\nLooks like Angular 2 won't bind to an array in its interpolation, just elements within the array. The DOM updates only when bound properties change. My guess is that putting a plain array `{{values}}` in the template doesn't trigger change detection. Imagine an array with thousands of objects. Changing any one of those objects could trigger change detection which would be bad for performance."}}