I have an Angular Module that imports the Ionic Module and hold a set of custom services and components I use across my apps. It is a separate project and is loaded as a npm module.
In my Ionic app project I use this module as an imported module.
This module has some functionality that needs to know about the app’s Ionic platform service, but when I inject the platform service in one of the module components, it is a different instance than the one in the app.
I think this happens because of the double import of the Ionic module, both in my module project and in my app. In my app I pass the root component in the
forRoot method, but in the module I just import it (because there is no root component).
Could any one tell me how can I force the module project get the app’s instance of the platform service? or where is the right place to pass that instance to the module?