Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Close overlay with physical BackButton

$
0
0

@Thyrion wrote:

Hello,

I don’t know how to do it… And dislike that the user have to use the navbar button for that.

I have this, in app.component.ts to handle the BackButton in the App but don’t know how to detect and close from here the Popover

this.platform.registerBackButtonAction(() => {
        console.log('BackButtonAction');
        if (this.nav.length() == 1) {
            if (!this.showedAlert) {
                this.confirmExitApp();
            } else {
                this.showedAlert = false;
                this.confirmAlert.dismiss();
            }
        }
 else {
        this.nav.pop({});
      }

Tanks for you answers.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>