Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Angular does not perform a deep diff of Objects and Arrays when redrawing the screen. That means that if an object in your array is modified -- Angular will be none the wiser. You could try assigning your rows property a completely new reference (clone the array) each time it is updated. For example this.rows = JSON.parse(JSON.stringify(this.rows)) or if your using Lodash: this.rows = _.cloneDeep(this.rows). If that works -- that will at least confirm your issue. Commented Aug 16, 2017 at 23:04
  • did you figure it out? Commented Aug 17, 2017 at 4:39
  • No..not yet @Maximus... I am seeing that ngOnChanges detects change in rows and temp variables only first time.. Then any other change in these arrays is not being detected as pointed out by @Graztok. And hence I am not able to run ChangeDetection. Do you have any input on this? Commented Aug 17, 2017 at 4:47
  • how do you update rows, show some code Commented Aug 17, 2017 at 4:50
  • @Maximus - I have added Update 2, that should make things more clear. Let me know If you need any other info. Commented Aug 17, 2017 at 5:13