Feature to close any opened $ionicPopup?

Hi there,

Very new JS/Angular/Ionic user here. Don’t know if my question is relevant but I’ll try.

In my app I have an inactivity timeout set, that logs out the user and sends him back to the Login state (this is set up as a controller in the app.js module, using a $rootscope).

If somewhere in the app I have an $ionicPopup opened, when the inactivity is detected, the app “resets” to the Login state but the $ionicPopup is still open. Because it was opened in a different state with a different scope, I cannot simply close it through my timeout function. And of course there could be one hundred different places where I’d open popups.

So I was wondering if there’s a simple way to detect any opened popup and close it from anywhere in the code, without having to deal with the scope?

Hope my question is understandable, if you need any additionnal info just ask for it.

Thanks for reading,
Thomas

3 Likes

+1 for this feature, would be very handy

+1 as well, this would be very useful

+100 for this feature.

could not agree more. +1