{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12084","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12084/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12084/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12084/events","html_url":"https://github.com/angular/angular.js/issues/12084","id":87355138,"number":12084,"title":"ngRepeat doesn't refresh DOM on simple array update","user":{"login":"zishanj","id":1451292,"avatar_url":"https://avatars.githubusercontent.com/u/1451292?v=3","gravatar_id":"","url":"https://api.github.com/users/zishanj","html_url":"https://github.com/zishanj","followers_url":"https://api.github.com/users/zishanj/followers","following_url":"https://api.github.com/users/zishanj/following{/other_user}","gists_url":"https://api.github.com/users/zishanj/gists{/gist_id}","starred_url":"https://api.github.com/users/zishanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zishanj/subscriptions","organizations_url":"https://api.github.com/users/zishanj/orgs","repos_url":"https://api.github.com/users/zishanj/repos","events_url":"https://api.github.com/users/zishanj/events{/privacy}","received_events_url":"https://api.github.com/users/zishanj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20ngRepeat","name":"component: ngRepeat","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular.js/labels/needs:%20more%20info","name":"needs: more info","color":"d7eb9f"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/35","html_url":"https://github.com/angular/angular.js/milestones/Purgatory","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/35/labels","id":526241,"number":35,"title":"Purgatory","description":"This milestone is for issues and PRs that weren't accepted yet and we are waiting for more info from the submitter.\r\n\r\nFor issues this typically means that we weren't able to reproduce the issue or we haven't decided yet if a feature request is a good idea at all.\r\n\r\nFor PRs this means that the PR still needs a lot of work and we might not even be interested in merging it because it looks like a non-core feature. We are still waiting for more discussion within the team or more info from the contributor before making the final decision.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":127,"closed_issues":376,"state":"open","created_at":"2014-01-04T01:20:50Z","updated_at":"2015-06-11T15:30:52Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-06-11T13:53:44Z","updated_at":"2015-06-12T08:01:07Z","closed_at":null,"body":"I am using simple array of numbers like below with `ng-repeat`:\r\n\r\n    n = [1,2,3,4,5,6]\r\n\r\nThe issue is, when I change this array for eg:\r\n\r\n    n=[1,2,3]\r\n\r\nIt doesn't fully reload the DOM but instead it just remove the last 3 `div` elements related to array `4, 5, 6`. Is there any way to force the `ng-repeat` to reload DOM everytime I change the array."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/111401760","html_url":"https://github.com/angular/angular.js/issues/12084#issuecomment-111401760","issue_url":"https://api.github.com/repos/angular/angular.js/issues/12084","id":111401760,"user":{"login":"Narretz","id":1153097,"avatar_url":"https://avatars.githubusercontent.com/u/1153097?v=3","gravatar_id":"","url":"https://api.github.com/users/Narretz","html_url":"https://github.com/Narretz","followers_url":"https://api.github.com/users/Narretz/followers","following_url":"https://api.github.com/users/Narretz/following{/other_user}","gists_url":"https://api.github.com/users/Narretz/gists{/gist_id}","starred_url":"https://api.github.com/users/Narretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narretz/subscriptions","organizations_url":"https://api.github.com/users/Narretz/orgs","repos_url":"https://api.github.com/users/Narretz/repos","events_url":"https://api.github.com/users/Narretz/events{/privacy}","received_events_url":"https://api.github.com/users/Narretz/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T08:01:07Z","updated_at":"2015-06-12T08:01:07Z","body":"http://plnkr.co/edit/4Cf9Xq08sagGeEOH2gXW?p=preview\r\n\r\nYou can test that the elements do not get reused by giving them a random class via the developer tools. When you set the list, the classes will be gone, which means the element has not been reused."}}