From 3270e28b3d10ab39f16259620ae18d0ed61ad371 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Thu, 29 Sep 2016 10:58:41 +0100 Subject: [PATCH] Slight clean-up in KnockoutSpa's boot code --- templates/KnockoutSpa/ClientApp/boot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() });