Angular services are singleton and tree-shakeable by default, but these behaviors have important nuances. A service provided via `providedIn` is tree-shakeable, while one added to a component's `providers` array is not. Similarly, services are singletons unless re-provided in a component's `providers` array, which creates
Sort: