Skip to content

Commit f3e1cab

Browse files
authored
Merge pull request #1415 from NullVoxPopuli/patch-2
Revise deprecation notes for Ember service injection
2 parents 047b8e1 + cc72541 commit f3e1cab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/ember/v6/importing-inject-from-ember-service.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export default class MyRoute extends Route {
1818
}
1919
```
2020

21-
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.
21+
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).
22+
23+
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.
2224

2325
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:
2426
```js

0 commit comments

Comments
 (0)