I have all my services injected in my app.component.ts providers array. If i navigate to other pages I do have access to the services singletons.
When I navigate to a modal, I get an error ModalCmp ionViewPreLoad error: No provider for ...
.
Injecting a service into the modal’s provider will create a new instance, therefore not a solution.
Injecting all the services in the app.module NgModule instead of app.component produces an error No provider for ChangeDetectorRef!
.
How can I not loose the injected services in the modals?