File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import EmberApp from ' ember-strict-application-resolver' ;
2+ import EmberRouter from ' @ember/routing/router' ;
3+ import PageTitleService from ' ember-page-title/services/page-title' ;
4+
5+ class Router extends EmberRouter {
6+ location = ' history' ;
7+ rootURL = ' /' ;
8+ }
9+
10+ export const docsAppRegistry = {
11+ ' ./router' : Router ,
12+ ' ./services/page-title' : PageTitleService ,
13+ // add any custom services here
14+ // import.meta.glob('./services/*', { eager: true }),
15+ }
16+
17+ export class App extends EmberApp {
18+ modules = docsAppRegistry ;
19+ }
20+
21+ Router .map (function () { });
Original file line number Diff line number Diff line change 1+ const greeting = ' hello' ;
2+
3+ <template >
4+ {{ greeting }} , world!
5+ </template >
Original file line number Diff line number Diff line change 1- import EmberApp from 'ember-strict-application-resolver';
21import EmberRouter from '@ember/routing/router';
32import * as QUnit from 'qunit';
43import { setApplication } from '@ember/test-helpers';
54import { setup } from 'qunit-dom';
65import { start as qunitStart, setupEmberOnerrorValidation } from 'ember-qunit';
76
7+ import { App, docsAppRegistry } from '#dosc-app/app';
8+
89class Router extends EmberRouter {
910 location = 'none';
1011 rootURL = '/';
1112}
1213
13- class TestApp extends EmberApp {
14+ class TestApp extends App {
1415 modules = {
15- './router': { default: Router },
16- // add any custom services here
16+ ...docsAppRegistry,
17+ './router': Router,
18+ // add any overrides here
1719 // import.meta.glob('./services/*', { eager: true }),
1820 };
1921}
You can’t perform that action at this time.
0 commit comments