Utilizing the Ionic refresh API allows for pulling and refreshing a page with updates to be accomplished.
Within an Angular2 page, I am trying to use the refresh method to clear existing rows and then add new rows using the .push()
method. However, when I attempt to clear the property using this.rows = []
, I encounter the following error.
8 470644 error EXCEPTION: TypeError: Attempted to assign to readonly property. in [rows in ListPage@25:30]
Is there an alternative method for clearing the previous array for the this.rows
property?