Skip to content

Commit 2731ce4

Browse files
authored
docs: fix import as service
1 parent 51de385 commit 2731ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/release/applications/dependency-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ This includes all of Ember's major framework classes, such as components, helper
192192

193193
Dependency injections can also be declared directly on Ember classes using `inject`.
194194
Currently, `inject` supports injecting controllers (via `import { inject } from '@ember/controller';`)
195-
and services (via `import { inject } from '@ember/service';`).
195+
and services (via `import { service } from '@ember/service';`).
196196

197197
The following code injects the `shopping-cart` service on the `cart-contents` component as the property `cart`:
198198

0 commit comments

Comments
 (0)