Ion-backdrop Event Listener


#1

Hi,

i’ve created a windows application with Ionic and need too listen to the ion-backdrop Element when it open and closes.

I tryed out something like this:

var backdrop = this.elementRef.nativeElement.querySelector('ion-backdrop');
    console.log(backdrop);
    let simple = this.renderer.listen(backdrop, '', () => {
    });

but this is not working because the ion-backdrop will deleted from the html code.

Have someone an idea how to to this?

Thank You
Daniel