Hi Bakadiri,
For a while (don't recall exact introduction version) the CLI creates lazy
loadable services. Those user the `@Injectable({provideIn:'root'})`. This
means that you don't need to put them in a module. If you want them in a
module anyway (not recommend) then you have to take out the
`(provideIn:'root'}` part and manually put them in the module you want them.
This means that if you do nothing, your services are global singletons to
your application, but will only be included/loaded when used. Build tools
will bundle them as needed.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.