Is there any way to save a reference to a popup without showing it? I have some retry logic for an AJAX request and I want to make sure only 1 popup shows in the event of multiple requests failing and right now I can't seem to do that.
Maybe this should be a property to add to $ionicPopup?