New to ionic, intermediate level on Angular. . .
Normally in Angular I have only one root module “app.module.ts” where I declare my providers which are nicely injected throughout all the components.
I am trying to inject one and only one instance of a data service throughout all the tabs so that I can share data across the tabs.
I included this DataService in app.module.ts providers, but not sure how to pass it on to the other tabs?
Each tab is loaded in app-routing.module.ts, for example:
loadChildren: () => import(’./components/home/home.module’).then( m => m.HomePageModule)
How do I do dependency injection across modules in this case?