From 2a5fc258daf0abf0477248d611bb91aa8828ebe1 Mon Sep 17 00:00:00 2001 From: Francis Peixoto Date: Wed, 8 Sep 2021 15:26:06 -0400 Subject: [PATCH] updated to reflect current Ember standards --- .../getting-started/quickstart/template.md | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/tests/dummy/app/pods/docs/getting-started/quickstart/template.md b/tests/dummy/app/pods/docs/getting-started/quickstart/template.md index 96e80694c..331ff1836 100644 --- a/tests/dummy/app/pods/docs/getting-started/quickstart/template.md +++ b/tests/dummy/app/pods/docs/getting-started/quickstart/template.md @@ -49,17 +49,20 @@ _Note:_ This is usually implemented with custom business logic - such as read it ```js // app/routes/application.js -import { inject as service } from '@ember/service'; import Route from '@ember/routing/route'; +import { inject as service } from '@ember/service'; -export default Route.extend({ - intl: service(), - beforeModel() { - this._super(...arguments); - - this.intl.setLocale(['en-us']); - } -}); +export default class ApplicationRoute extends Route { + @service intl; + + beforeModel() { + this.intl.setLocale(['en-us']); + } + + model() { + // ... + } +} ``` **Configure your template linter**