Skip to content

Commit

Permalink
Use native classes in app/router.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Aug 20, 2019
1 parent d73dd66 commit 2c0fb3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import EmberRouter from '@ember/routing/router';
import config from './config/environment';

const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
class Router extends EmberRouter {
location = config.locationType,
rootURL = config.rootURL
}

Router.map(function() {
});
Expand Down
8 changes: 4 additions & 4 deletions packages/@ember/octane-app-blueprint/files/app/router.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import EmberRouter from '@ember/routing/router';
import config from './config/environment';

const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
class Router extends EmberRouter {
location = config.locationType,
rootURL = config.rootURL
}

Router.map(function() {
});
Expand Down

0 comments on commit 2c0fb3f

Please sign in to comment.