2

I am currently upgrading an Ionic 3 app to Ionic 4, After 'ionic-angular' changes to '@ionic/angular', The following line of code doesn't work anymore:

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

what is the ionic 4 style for this piece of code to have the same functionality? I tried

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

while my program stop compiling and gives me loader errors.

1

1 Answer 1

0

I have IonicModule.forRoot({mode: 'ios'}) in the imports for my app module and it works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.