# Services

An Ember Service is a long-lived object (singleton) used to provide services to other Ember objects. It directly extends Ember Object but uses its own class name to encourage the services architecture pattern.

We can create a custom service and have it injected exactly like the Ember Data store – on any Ember object we want!

Services are the preferred way to hold session-wide state in an Ember app.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://prospect-io.gitbook.io/developer-playbook/our-stack/ember.js/services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
