(Angular) Should I have my http services in core folder (as singleton) or in lazy loaded modules itself?
Which approach is better?
(Angular) Should I have my http services in core folder (as singleton) or in lazy loaded modules itself?
Which approach is better?
With the new providedIn
property of the Injectable decorator
(since Angular v6). There is no need to register services in modules AT ALL.