Clearinterval ionviewwillleave on tabs page


#1

Hello I have a problem, create an interval that returns me a json and I decided to clean it every time I left the page, the issue is that the interval believes it in the tabs page and the event on exit is the following

        ionViewWillLeave() {		
	    console.log("fuera tabs");		   
        clearInterval(this.intervalmsg);
        }

But in one of the tabs I move to a page with navctrl.push and this prevents the event from running to clear the interval.