Skip to main content

What does "singleton service" mean?

A singleton service is a service that has only one instance in the entire application.

If it is registered with providedIn: 'root', Angular creates it once and uses the same object everywhere it is injected.

Plus: convenient for storing shared data (e.g. a token or authorization state). Minus: it lives as long as the application does, so it can accumulate state or memory if handled carelessly.

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.