Equivalent of IonicPageModule.forChild() in Ionic 4

Hello! I am migrating from Ionic 3 to Ionic 4 and I plan on using the angular router. The general process was pretty straight forward for the most part, but I did encounter some issues.

I know that IonicPageModule has been deprecated and that we are now supposed to use IonicModule. However, IonicModule does not have a forChild() function, so I am wondering how I can translate an ionic 3 code stating:
IonicPageModule.forChild(Component)

Can I just delete these statements and perform a workaround with the angular router?

Thanks!

The Angular Router does have an RouterModule.forChild()

1 Like

Thank you so much! I will use this as I apply the changes to use the angular router (I am now only translating the code using the new packages).