Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 3270e28

Browse files
Slight clean-up in KnockoutSpa's boot code
1 parent 42e88f7 commit 3270e28

File tree

1 file changed

+2
-1
lines changed
  • templates/KnockoutSpa/ClientApp

1 file changed

+2
-1
lines changed

templates/KnockoutSpa/ClientApp/boot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import './css/site.css';
22
import * as ko from 'knockout';
33
import { createHistory } from 'history';
44
import './webpack-component-loader';
5+
import AppRootComponent from './components/app-root/app-root';
56

67
// Load and register the <app-root> component
7-
ko.components.register('app-root', require('./components/app-root/app-root').default);
8+
ko.components.register('app-root', AppRootComponent);
89

910
// Tell Knockout to start up an instance of your application
1011
ko.applyBindings({ history: createHistory() });

0 commit comments

Comments
 (0)