Force specific platform style on Ionic 4

#1

Hello,

I tried to add mode=“ios” to the < html > tag and also put this information in the app.module.ts:

IonicModule.forRoot({
   mode: 'ios'
}),

In Ionic Lab Android still uses the Material Style. Any Ideas?

Best Reagrds
Marius

#2

Thanks to Paul Stelzer (https://github.com/paulstelzer) who told me that it’s possible that Ionic Lab overwrites the platform mode. Just using ionic serve or ng serve shows the correct mode / platform style I set in app.module.ts.

1 Like