How to delete current page when pop()


#1

This is my problem: In my homePage -> push(SecondPage) -> pop() to HomePage -> push(SecondPage)
In SecondPage i use events.subscribe() to listen events from ThridPage,
And i get two events. so how can i delete current page when back previous page


#2

Unsubscribe whenever you leave page 2, using ionViewWillLeave() or some other lifecycle event.