We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e88f7 commit 3270e28Copy full SHA for 3270e28
templates/KnockoutSpa/ClientApp/boot.ts
@@ -2,9 +2,10 @@ import './css/site.css';
2
import * as ko from 'knockout';
3
import { createHistory } from 'history';
4
import './webpack-component-loader';
5
+import AppRootComponent from './components/app-root/app-root';
6
7
// Load and register the <app-root> component
-ko.components.register('app-root', require('./components/app-root/app-root').default);
8
+ko.components.register('app-root', AppRootComponent);
9
10
// Tell Knockout to start up an instance of your application
11
ko.applyBindings({ history: createHistory() });
0 commit comments