Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix importing-inject-from-ember-service version #1394

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @ijlee2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Loading