Skip to content

Commit

Permalink
Add guide for importing-inject-from-ember-service deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Dec 8, 2024
1 parent f671e3c commit accd979
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions content/ember/v5/importing-inject-from-ember-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Importing `inject` from `@ember/service`
until: 7.0.0
since: 6.3.0
displayId: importing-inject-from-ember-service
---

Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.

Example:

```diff
import { Route } from '@ember/routing/route';
- import { inject as service } from '@ember/service';
+ import { service } from '@ember/service';

export default class MyRoute extends Route {
@service store;
}
```

0 comments on commit accd979

Please sign in to comment.