ionic-content-banner icon indicating copy to clipboard operation
ionic-content-banner copied to clipboard

Clean up all banners

Open pliablepixels opened this issue 10 years ago • 2 comments

Hello, is there a way today for me to clean up all banners?

Use case: I have a specific situation where I need to display an important banner - I'd like to clean up any other banners currently being displayed because if I don't they keep alternating till the other banners expire.

So, sort of a force close any that may be open.

thanks

pliablepixels avatar Sep 02 '15 16:09 pliablepixels

Thanks @pliablepixels if you look at the docs you can get a reference to the banner when calling show. So you just invoke that reference to clean it up, the same way you would with an angular watcher reference. Thanks!!!

djett41 avatar Oct 12 '15 08:10 djett41

Hello @djett41 - I was wondering if there was a way to close all open banners - not just specific instances. I understand I can clean up single instances and/or keep a list of which ones may be open and clean them all, but I'm looking more of a system wide "clean any that may be active". thanks

pliablepixels avatar Oct 12 '15 12:10 pliablepixels