> For the complete documentation index, see [llms.txt](https://docs.aurelia.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks.md).

# Services & runtime hooks

- [Dependency injection (DI)](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection.md): Learn the fundamentals of Aurelia's dependency injection container and how to register, resolve, and organize services.
- [Quick Reference ("How Do I...")](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection/dependency-injection-di.md)
- [Visual Diagrams](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection/diagrams.md)
- [DI overview](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection/overview.md): Understand Aurelia's dependency injection concepts and why containers simplify application structure.
- [Creating services](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection/creating-services.md): Learn how to define and register services with Aurelia's dependency injection container.
- [Resolvers](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection/resolvers.md): Control how dependencies are resolved in Aurelia using resolver helpers like optional, lazy, and all.
- [What is dependency injection?](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/dependency-injection/what-is-dependency-injection.md): Learn about why Dependency Injection (DI) is so important and what role it plays in Aurelia.
- [App Tasks](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/app-tasks.md): App tasks provide injection points to run code at certain points in the compiler lifecycle, allowing you to interface with different parts of the framework and execute code.
- [Task Queue](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/task-queue.md): Manage Aurelia's scheduler and task utilities to coordinate asynchronous work, rendering, and tests.
- [Event Aggregator](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/event-aggregator.md): Use Aurelia's Event Aggregator for lightweight pub/sub communication between components.
- [Logging](https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks/logging.md): Aurelia provides a powerful logging API that allows you to display debug and error messages in your applications in a controlled manner.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.aurelia.io/getting-to-know-aurelia/services-and-runtime-hooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
