What does providedIn: 'root' do?
Correct answer
Registers service as singleton at root level
Explanation
providedIn: 'root' creates a singleton service.
Update: Admin added a tag on this question
Topics
By Admin · · 25 views