Ion-nav root components within modal are not being loaded properly. ngOnInit not firing

I have a modal which uses ion-nav to, itself, load a new root navigable component.

However, when this component gets displayed and shown, ngOnInit never fires. I have a number of other observables but these never get subscribed to within the template.

Ah. Turns out that you must not set changeDetection: ChangeDetectionStrategy.OnPush. Unless you plan on marking the component.

1 Like