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


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.


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

 import { App } from 'ionic-angular';

 constructor(private app: App) {

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

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

Hope it works. :penguin: