We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f31940 + 92beadb commit ac60f98Copy full SHA for ac60f98
app/router.js
@@ -2,10 +2,10 @@ import EmberRouter from '@ember/routing/router';
2
import config from './config/environment';
3
import RouterScroll from 'ember-router-scroll';
4
5
-const Router = EmberRouter.extend(RouterScroll, {
6
- location: config.locationType,
7
- rootURL: config.rootURL,
8
-});
+export default class Router extends EmberRouter.extend(RouterScroll) {
+ location = config.locationType;
+ rootURL = config.rootURL;
+}
9
10
Router.map(function() {
11
this.route('logout');
@@ -52,5 +52,3 @@ Router.map(function() {
52
53
this.route('catch-all', { path: '*path' });
54
});
55
-
56
-export default Router;
0 commit comments