As I embark on creating the NewService
, my goal is to enable its accessibility from various parts of the application.
The question arises - should I inject it in SharedModule (a module that exports all reusable modules) or in AppModule (the primary module of my application)?
@NgModule({
providers: [
// Where is the optimal placement for injection?
]
})