8

How to disable transitions for all pages in ionic 2 ?
ionic 2 NavController allows you to do it on a specific view like so

nextPage() {
  this.navCtrl.push(HomePage, {}, {animate: false})
}

but how can I disable all transitions for all pages globally?

Evan Lévesque
  • 3,115
  • 7
  • 40
  • 61

1 Answers1

11

To disable animation for all your navigation go to your app.module.ts file and add to the config animate:false

Like so:

    IonicModule.forRoot(App, { animate: false })
misha130
  • 5,457
  • 2
  • 29
  • 51
  • 2
    Why isn't that option documented on the site: https://ionicframework.com/docs/api/config/Config/ ? There are a lot of options there, but 'animate' is not listed. What other options may be used? – Francisco Fiuza Apr 19 '18 at 02:41
  • 1
    Just animate, I didn't see at the time any other options (2 years ago). I found this by literally looking through the source code for an hour. – misha130 Apr 19 '18 at 22:09
  • Bad choice, this also disables animations for toasts – Wrong Apr 15 '19 at 09:10