[AngularJS] Re: problem with ng-grid two-way binding

2014-05-30 Thread Pavel Bosin
I have not looked into ng-grid source, but I've seen similar behavior with kendo widgets. When a widget is created, it binds to an object provided by your controller. In your case it seems to be $scope.myData[0]. When you change this exact object, the widget reflects the change. But if you rea

[AngularJS] Re: problem with ng-grid two-way binding

2014-05-29 Thread johntom
Not sure why but the following works $scope.myData[0].delete ; $scope.myData[0] = {name: "a", age: 55}; $scope.myData.push({name: "ccc", age: 34}); On Thursday, May 29, 2014 5:21:47 AM UTC-4, zhou wrote: > > http://plnkr.co/edit/7QhluNzJXb7nhcpv8nQE?p=preview > > on this example, >