Angular - Services and Dependency Injection
You want to inject a
UserService into two standalone components, ProfileComponent and SettingsComponent, so they share the same instance of the service. How should you provide UserService to achieve this?