Keep list updated with Ionic 2 / Angular 2
I have an application developed with Ionic 2 that uses Angular 2. I want to update the list of my component in two ways. Automatic - Refresh if there is no update or if the last update was more than 30 minutes ago. Manual - If the user does not want to wait until the next update, he can update manually at any time. When the user leaves the page cancel the automatic refresh and when he comes back re-initialize. I do not want to update immediately when the user enters the page, but only when it completes 30 minutes since the last update. What would be the best way to achieve this? I wonder if