Router Outlet is a component used in routing within an Angular app. Router Outlet behaves in a similar way as Angular's built-in Router Outlet component, but contains the logic for providing a stacked navigation, and animating views in and out.
While Router Outlet has methods for navigating around, it's recommended to use the navigation methods in Angular's router.
Life Cycle Hooks
Routes rendered in a Router Outlet have access to specific Ionic events that are wired up to animations
||Fired when the component being routed to is about to animate in.|
||Fired when the component being routed to has animated in.|
||Fired when the component being routed from is about to animate.|
||Fired when the component being routed from has animated.|
These event tie into Ionic's animation system and can be used to coordinate parts of your app when a Components is done with it's animation. These events are not a replacement for Angular's own event system, but an addition.
For handling Router Guards, the older
ionViewCanLeave have been replaced with their framework specific equivalent. For Angular, there are Router Guards.