Skip to content

Commit

Permalink
Fix importing-inject-from-ember-service version
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Dec 12, 2024
1 parent 90f0321 commit 2014223
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 2014223

Please sign in to comment.