Scroll position issue on updating data related to template


#1
  • On ionViewDidLoad() I’m getting some data and pushing it on array of object which is listing the each object fields on template with *ngFor .
  • On scroll up I’m pushing some more objects on the same array at start ,but due to angular’s beheviour of real time change detection on change of the array value it re-rendering the template page and the focus is shifted to newly added data(top of the page) from older data.
  • So what should I do to avoid shifting the focus(page position go to the top) on make changes
    in template related properties.