0
What is the difference between providedIn: 'root' and registering a service in providers of a module?
subina kallyani
medium
0completed
5
Answer
providedIn: 'root' makes the service a singleton across the app; registering in providers can create multiple instances depending on the module/component scope.
Click to Reveal Answer
Tap anywhere to see the solution
Revealed
Comments0