Skip to content

Commit

Permalink
fix: more explicit service injections
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed May 20, 2021
1 parent b11e03a commit 8b87e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/services/page-title-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class PageTitleListService extends Service {
@service('page-title')
pageTitle;

@service
@service('router')
router;

// in fastboot context "document" is instance of
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';

export default class ApplicationController extends Controller {
@service
@service('router')
router;
}

0 comments on commit 8b87e14

Please sign in to comment.