Skip to content

Commit

Permalink
Update content/ember/v6/importing-inject-from-ember-service.md
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes authored Dec 9, 2024
1 parent e0c458e commit 8505f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/ember/v6/importing-inject-from-ember-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Importing `inject` from `@ember/service` is deprecated. Please import `service`

Example:

```diff
```js {data-filename="my-route.js" data-diff="-2,+3"}
import { Route } from '@ember/routing/route';
- import { inject as service } from '@ember/service';
+ import { service } from '@ember/service';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';

export default class MyRoute extends Route {
@service store;
Expand Down

0 comments on commit 8505f4f

Please sign in to comment.