Skip to content
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
Expand Up @@ -18,7 +18,9 @@ export default class MyRoute extends Route {
}
```

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.
You may ignore this deprecation via babel plugin (for both app and addon code), here: [babel-plugin-undeprecate-inject-from-at-ember-service](https://github.com/NullVoxPopuli/undeprecate-inject-from-at-ember-service).

For violations within your own code, this deprecation can be dealt with one a single pass via the [ember-codemod-remove-inject-as-service](https://github.com/ijlee2/ember-codemod-remove-inject-as-service) codemod.

If you're working on a library that needs to support ember-source prior to 4.1, you can support both styles of `service` via:
```js
Expand Down