One way I can think of is to implement ngOnDestroy in the “previous” page component and do some housekeeping there.
Also ionic 2 provides hooks that can be useful too, I haven’t tried myself though
···
ionViewWillLeave
ionViewDidLeave
ionViewWillUnload
ionViewDidUnload
···