{"action":"created","issue":{"url":"https://api.github.com/repos/ag-grid/ag-grid/issues/2639","repository_url":"https://api.github.com/repos/ag-grid/ag-grid","labels_url":"https://api.github.com/repos/ag-grid/ag-grid/issues/2639/labels{/name}","comments_url":"https://api.github.com/repos/ag-grid/ag-grid/issues/2639/comments","events_url":"https://api.github.com/repos/ag-grid/ag-grid/issues/2639/events","html_url":"https://github.com/ag-grid/ag-grid/issues/2639","id":361862187,"node_id":"MDU6SXNzdWUzNjE4NjIxODc=","number":2639,"title":"[AngularJS] Tempalted cells don't update when setting new row data","user":{"login":"heneryville","id":1660429,"node_id":"MDQ6VXNlcjE2NjA0Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/1660429?v=4","gravatar_id":"","url":"https://api.github.com/users/heneryville","html_url":"https://github.com/heneryville","followers_url":"https://api.github.com/users/heneryville/followers","following_url":"https://api.github.com/users/heneryville/following{/other_user}","gists_url":"https://api.github.com/users/heneryville/gists{/gist_id}","starred_url":"https://api.github.com/users/heneryville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heneryville/subscriptions","organizations_url":"https://api.github.com/users/heneryville/orgs","repos_url":"https://api.github.com/users/heneryville/repos","events_url":"https://api.github.com/users/heneryville/events{/privacy}","received_events_url":"https://api.github.com/users/heneryville/received_events","type":"User","site_admin":false},"labels":[{"id":1070071522,"node_id":"MDU6TGFiZWwxMDcwMDcxNTIy","url":"https://api.github.com/repos/ag-grid/ag-grid/labels/in_zendesk","name":"in_zendesk","color":"f7e8aa","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T18:01:54Z","updated_at":"2018-09-26T13:37:20Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[X] bug report => see 'Providing a Reproducible Scenario'\r\n[] feature request => do not use Github for feature requests, see 'Customers of ag-Grid'\r\n[] support request => see 'Requesting Community Support'\r\n```\r\nWhen using the row API to update data, cells that use an angular template while `angularCompileRows` is on do not update if the data completely replaces the old object. e.g. [in this plunker](https://plnkr.co/edit/PSyxP15CTn48KHXXyvGB?p=preview), there are two buttons. The first doubles each row value by using `rowNode.setData({...newObject})`, the other will mutate rowNode.data, then call `rowNode.setData(rowNode.data)`. The second always works, but clicking the first button even once will cause a complete failure of all buttons afterwards.  This is because the data object is attached to the $scope, but is not re-attached if a new data object is provided. Thus mutations work, but replacing the object won't replace the object on the scope as well, meaning it's now detached from updates.\r\n\r\n**Current behavior**\r\nCalling `rowNode.setData({...newObject})` will cause this and all future cells to stop updating.\r\n\r\n**Expected behavior**\r\nCalling `rowNode.setData({...newObject})` will cause the cell to update and allow for future updates.\r\n\r\n**Please tell us about your environment:**\r\nWindows, Angular 1.5.x, \r\n\r\n* **ag-Grid version:** v\r\nagGrid v19.0.0\r\n\r\n* **Browser:**\r\nMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36\r\n\r\n* **Language:**  ES6\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ag-grid/ag-grid/issues/comments/424717966","html_url":"https://github.com/ag-grid/ag-grid/issues/2639#issuecomment-424717966","issue_url":"https://api.github.com/repos/ag-grid/ag-grid/issues/2639","id":424717966,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDcxNzk2Ng==","user":{"login":"makinggoodsoftware","id":505400,"node_id":"MDQ6VXNlcjUwNTQwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/505400?v=4","gravatar_id":"","url":"https://api.github.com/users/makinggoodsoftware","html_url":"https://github.com/makinggoodsoftware","followers_url":"https://api.github.com/users/makinggoodsoftware/followers","following_url":"https://api.github.com/users/makinggoodsoftware/following{/other_user}","gists_url":"https://api.github.com/users/makinggoodsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/makinggoodsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makinggoodsoftware/subscriptions","organizations_url":"https://api.github.com/users/makinggoodsoftware/orgs","repos_url":"https://api.github.com/users/makinggoodsoftware/repos","events_url":"https://api.github.com/users/makinggoodsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/makinggoodsoftware/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T13:37:20Z","updated_at":"2018-09-26T13:37:20Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nYour ticket has been flagged as in_zendesk, it means that we recognize this as an issue worth investigating so we have moved it to our official support channel for customers (zendesk)\r\n\r\nWe will carry on there with the investigation and we will update you as soon as possible.\r\n\r\nThanks\r\n\r\n"}}
{"actor":{"display_login":"makinggoodsoftware"}}