1.

What is the best approach to incorporate navigation into an Ionic 4 app?

Answer»

Ionic 4 is based on ANGULAR and leverages RouterModule, an Angular router module, for navigation. It gives the entire application a more consistent routing experience. The NavController service was used for navigation in prior versions of Ionic, and it is still available, although it will be deprecated shortly. As a result, in new Ionic applications built with Ionic 4, it will not be encouraged.

The ion-router-outlet COMPONENT is used in the CURRENT version of Ionic to control the animations that appear as the USER moves to or from a component inside the app. The ion-router-outlet is similar to the Angular router-outlet, but with the addition of an animation effect.



Discussion

No Comment Found