File tree 2 files changed +16
-10
lines changed
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable ember/no-classic-classes */
1
2
import Application from '@ember/application' ;
2
3
import Resolver from 'ember-resolver' ;
3
4
import loadInitializers from 'ember-load-initializers' ;
4
5
import config from 'dummy/config/environment' ;
5
6
6
- export default class App extends Application {
7
- modulePrefix = config . modulePrefix ;
8
- podModulePrefix = config . podModulePrefix ;
9
- Resolver = Resolver ;
10
- }
7
+ const App = Application . extend ( {
8
+ modulePrefix : config . modulePrefix ,
9
+ podModulePrefix : config . podModulePrefix ,
10
+ Resolver,
11
+ } ) ;
11
12
12
13
loadInitializers ( App , config . modulePrefix ) ;
14
+
15
+ export default App ;
Original file line number Diff line number Diff line change
1
+ /* eslint-disable ember/no-classic-classes */
1
2
import EmberRouter from '@ember/routing/router' ;
2
- import config from 'dummy /config/environment' ;
3
+ import config from '. /config/environment' ;
3
4
4
- export default class Router extends EmberRouter {
5
- location = config . locationType ;
6
- rootURL = config . rootURL ;
7
- }
5
+ const Router = EmberRouter . extend ( {
6
+ location : config . locationType ,
7
+ rootURL : config . rootURL ,
8
+ } ) ;
8
9
9
10
Router . map ( function ( ) {
10
11
this . route ( 'parent' , { path : '/' } , function ( ) {
11
12
this . route ( 'child' ) ;
12
13
this . route ( 'sister' ) ;
13
14
} ) ;
14
15
} ) ;
16
+
17
+ export default Router ;
You can’t perform that action at this time.
0 commit comments