0

(Angular) Should I have my http services in core folder (as singleton) or in lazy loaded modules itself?

Which approach is better?

bazera
  • 119
  • 1
  • 1
  • 9
  • 1
    Your question is a bit too subjective for StackOverflow. You might do better asking in the [chat rooms](https://chat.stackoverflow.com/) – adam0101 Dec 19 '18 at 15:17

1 Answers1

0

With the new providedIn property of the Injectable decorator (since Angular v6). There is no need to register services in modules AT ALL.

SeleM
  • 9,310
  • 5
  • 32
  • 51