IonicConfig


#1

how can i create object of

IonicConfig in app.module.ts to pass it to .forRoot() funciton

how can i create IonicConfig object in ionic 4 to set iOS theme for all platform. i need this ionic 4 .i already tired these

Blockquote IonicModule.forRoot(MyApp, { mode: ‘md’ })

Blockquote @App({
templateUrl: ‘build/app.html’,
config: {
mode: ‘md’
}
})

but none worked cause .

forRot()
expecting an object of IonicConfig


#2

In Ionic 4, use

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

I just wrote about this very feature at https://chrisgriffith.wordpress.com/2018/11/27/configuring-your-ionic-app/

Chris
http://ionic-book.com/


#3

I added this but when i run app in android it doesn’t take iOS layout. Any suggestion if i missing something.