Skip to content

Commit 6b294a5

Browse files
bertdeblockchancancode
authored andcommitted
Use new named service export
1 parent d38339e commit 6b294a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/markdown/tutorial/part-2/10-service-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ To fix our problem, we would need to do the same. Ember exposes this internal st
214214

215215
```run:file:patch lang=js cwd=super-rentals filename=app/components/share-button.js
216216
@@ -1 +1,2 @@
217-
+import { inject as service } from '@ember/service';
217+
+import { service } from '@ember/service';
218218
import Component from '@glimmer/component';
219219
@@ -5,4 +6,6 @@
220220
export default class ShareButtonComponent extends Component {

src/markdown/tutorial/part-2/11-ember-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Alright, now that we have our model set up, it's time to refactor our route hand
170170
import Route from '@ember/routing/route';
171171
-
172172
-const COMMUNITY_CATEGORIES = ['Condo', 'Townhouse', 'Apartment'];
173-
+import { inject as service } from '@ember/service';
173+
+import { service } from '@ember/service';
174174

175175
export default class IndexRoute extends Route {
176176
- async model() {
@@ -200,7 +200,7 @@ Alright, now that we have our model set up, it's time to refactor our route hand
200200
import Route from '@ember/routing/route';
201201
-
202202
-const COMMUNITY_CATEGORIES = ['Condo', 'Townhouse', 'Apartment'];
203-
+import { inject as service } from '@ember/service';
203+
+import { service } from '@ember/service';
204204

205205
export default class RentalRoute extends Route {
206206
- async model(params) {

0 commit comments

Comments
 (0)