Skip to content

Commit ac60f98

Browse files
committed
Auto merge of #2165 - Turbo87:router, r=locks
router: Convert to ES6 class ... to make the transition to #2149 a little easier :) r? @locks
2 parents 7f31940 + 92beadb commit ac60f98

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/router.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import EmberRouter from '@ember/routing/router';
22
import config from './config/environment';
33
import RouterScroll from 'ember-router-scroll';
44

5-
const Router = EmberRouter.extend(RouterScroll, {
6-
location: config.locationType,
7-
rootURL: config.rootURL,
8-
});
5+
export default class Router extends EmberRouter.extend(RouterScroll) {
6+
location = config.locationType;
7+
rootURL = config.rootURL;
8+
}
99

1010
Router.map(function() {
1111
this.route('logout');
@@ -52,5 +52,3 @@ Router.map(function() {
5252

5353
this.route('catch-all', { path: '*path' });
5454
});
55-
56-
export default Router;

0 commit comments

Comments
 (0)