{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12161","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12161/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12161/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12161/events","html_url":"https://github.com/angular/angular.js/issues/12161","id":89274417,"number":12161,"title":"digest issue with ng-form with validators on a ng-repeat when using ng-animate on 1.4.1","user":{"login":"jlowcs","id":3777724,"avatar_url":"https://avatars.githubusercontent.com/u/3777724?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowcs","html_url":"https://github.com/jlowcs","followers_url":"https://api.github.com/users/jlowcs/followers","following_url":"https://api.github.com/users/jlowcs/following{/other_user}","gists_url":"https://api.github.com/users/jlowcs/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowcs/subscriptions","organizations_url":"https://api.github.com/users/jlowcs/orgs","repos_url":"https://api.github.com/users/jlowcs/repos","events_url":"https://api.github.com/users/jlowcs/events{/privacy}","received_events_url":"https://api.github.com/users/jlowcs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T12:02:10Z","updated_at":"2015-06-18T12:02:10Z","closed_at":null,"body":"When there is a ng-form directive on a ng-repeat directive, and there are validations in fields inside that form, the deletion of an element in the list is not reflected in the ng-repeat.\r\n\r\nhttp://plnkr.co/edit/Er0thSHyCg0s2lvGO8SP\r\n\r\n```html\r\n    <div ng-controller=\"MyCtrl as myCtrl\">\r\n      list length: {{myCtrl.list.length}}\r\n      <div ng-form ng-repeat=\"elt in myCtrl.list track by elt.id\">\r\n        <input required ng-model=\"elt.text\">\r\n        <button ng-click=\"myCtrl.deleteElt($index)\">delete</button>\r\n      </div>\r\n      <button ng-click=\"myCtrl.addElt()\">add</button>\r\n    </div>\r\n```\r\n\r\n(ng-form and ng-repeat are on the same element)\r\n\r\n```javascript\r\nvar app = angular.module('exampleApp', ['ngAnimate']);\r\n\r\napp.controller('MyCtrl', function ($scope, $element) {\r\n  this.list = [];\r\n  for (var i = 0; i < 6; ++i) {\r\n    this.list.push({\r\n      text: 'Elt ' + i,\r\n      id: i + 1\r\n    });\r\n  }\r\n  \r\n  var _this = this;\r\n  \r\n  this.deleteElt = function (index) {\r\n    _this.list.splice(index, 1);\r\n  }\r\n  this.addElt = function (index) {\r\n    _this.list.push({\r\n      text: ''\r\n    });\r\n  }\r\n});\r\n```"}}