Skip to content

Commit

Permalink
Merge pull request #1394 from bertdeblock/fix-importing-inject-from-e…
Browse files Browse the repository at this point in the history
…mber-service-version

Fix `importing-inject-from-ember-service` version
  • Loading branch information
kategengler authored Dec 13, 2024
2 parents 90f0321 + 2014223 commit cf61ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/ember/v6/importing-inject-from-ember-service.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Importing `inject` from `@ember/service`
until: 7.0.0
since: 6.3.0
since: 6.2.0
---

Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.
Expand All @@ -17,3 +17,5 @@ export default class MyRoute extends Route {
@service store;
}
```

You can use the [ember-codemod-remove-inject-as-service](https://github.com/ijlee2/ember-codemod-remove-inject-as-service) codemod, to fix all violations.

0 comments on commit cf61ff7

Please sign in to comment.