How do you change the platform mode in rc0?


#1

Documentation is confusing and incomplete about this. I’ve read both this and the documentation, but I’m still not certain on how to change the global mode.

Rc0 introduced so many changes with Angular 2 final, that I’m not where to begin. @App is gone, and we don’t bootstrap the application like we used to. Any help is appreciated.

Ideally, I’d like my application to be consistently in md mode, regardless of whether it’s running on iOS, Android or Windows.


#2

Inside app.module.ts, add a config for mode.

@NgModule({
...

  imports: [
    IonicModule.forRoot(MyApp, {
      mode: 'wp'     // 'ios' or 'md' or 'wp'
    })
  ],

...
})
export class AppModule {}