Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ionic 4 ionic 4 angular disable iOS swipe back in home page

$
0
0

I enable the swipeGesture by putting this at app component.html
<ion-router-outlet id=“main-content” [swipeGesture]=“true” animated=“true”>.

I have tried

  1. this at home.page.module
    IonicModule.forRoot({
    swipeBackEnabled: false
    }),

  2. constructor(private routerOutlet: IonRouterOutlet) {
    }
    ngOnInit() : void {
    this.routerOutlet.swipeGesture = false;
    }

tried tis in home.page.ts

Both are not working. Please help .

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



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