Concept Flow - @Injectable decorator and providedIn
Define Service Class
Add @Injectable Decorator
Set providedIn Property
Angular Registers Service
Service Available for Injection
Component or Other Service Requests Injection
Angular Provides Singleton Instance
This flow shows how adding @Injectable with providedIn makes Angular register the service and provide a singleton instance wherever injected.