diff --git a/templates/KnockoutSpa/ClientApp/boot.ts b/templates/KnockoutSpa/ClientApp/boot.ts index 8775c95..a3932f8 100644 --- a/templates/KnockoutSpa/ClientApp/boot.ts +++ b/templates/KnockoutSpa/ClientApp/boot.ts @@ -2,9 +2,10 @@ import './css/site.css'; import * as ko from 'knockout'; import { createHistory } from 'history'; import './webpack-component-loader'; +import AppRootComponent from './components/app-root/app-root'; // Load and register the component -ko.components.register('app-root', require('./components/app-root/app-root').default); +ko.components.register('app-root', AppRootComponent); // Tell Knockout to start up an instance of your application ko.applyBindings({ history: createHistory() });