File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ import Resolver from 'ember-resolver';
33import loadInitializers from 'ember-load-initializers' ;
44import config from 'dummy/config/environment' ;
55
6- const App = Application . extend ( {
7- modulePrefix : config . modulePrefix ,
8- podModulePrefix : config . podModulePrefix ,
9- Resolver,
10- } ) ;
6+ export default class App extends Application {
7+ modulePrefix = config . modulePrefix ;
8+ podModulePrefix = config . podModulePrefix ;
9+ Resolver = Resolver ;
10+ }
1111
1212loadInitializers ( App , config . modulePrefix ) ;
13-
14- export default App ;
Original file line number Diff line number Diff line change 11import EmberRouter from '@ember/routing/router' ;
22import config from 'dummy/config/environment' ;
33
4- const Router = EmberRouter . extend ( {
5- location : config . locationType ,
6- rootURL : config . rootURL ,
7- } ) ;
4+ export default class Router extends EmberRouter {
5+ location = config . locationType ;
6+ rootURL = config . rootURL ;
7+ }
88
9- export default Router . map ( function ( ) {
9+ Router . map ( function ( ) {
1010 this . route ( 'other-page' ) ;
1111} ) ;
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import { inject as service } from '@ember/service';
22import Route from '@ember/routing/route' ;
33import { set } from '@ember/object' ;
44
5- export default Route . extend ( {
6- headData : service ( ) ,
5+ export default class extends Route {
6+ @ service headData ;
77 afterModel ( ) {
88 set ( this , 'headData.title' , 'Hello page' ) ;
9- } ,
10- } ) ;
9+ }
10+ }
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import { inject as service } from '@ember/service';
22import Route from '@ember/routing/route' ;
33import { set } from '@ember/object' ;
44
5- export default Route . extend ( {
6- headData : service ( ) ,
5+ export default class extends Route {
6+ @ service headData ;
77 afterModel ( ) {
88 set ( this , 'headData.title' , 'Other page' ) ;
9- } ,
10- } ) ;
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments