How to disable scroll with default property (without any hack kinda overflow:hidden)


#1

I’ve tried several methods to disable scroll! Is there any property for ionic3 kinda scroll=“false” available in ionic2 for scroll-content! Thank you very very much.


#2

Put this code into your app.component.ts. It will be globally disabled then.


 import { App } from 'ionic-angular';

 constructor(private app: App) {
   app.setScrollDisabled(true);
};

If you want only a specific page use this code in your HTML.

 <ion-scroll scrollX="false" scrollY="false">
 </ion-scroll>

Hope it works. :penguin: