emberjs / emberjs/ember.js

Reactivity: Services

Open
#20,095 8 comments 0 reactions 2 assignees Claimed by @NullVoxPopuli View on GitHub
design
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

Some basic notes:

- A *service* is "just a resource constructor" (with zero arguments)
- An *owner* is a context that instantiates resources as singletons
- An *app* is a special context managed by the framework (an *engine* is a special kind of *app*)
- An object is a *framework object* if it's associated with an owner
- The `@service` decorator can be applied to any framework object, and instantiates a resource constructor in the context of the owner associated with the framework object

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.