Slight clean-up in KnockoutSpa's boot code

This commit is contained in:
SteveSandersonMS
2016-09-29 10:58:41 +01:00
parent 42e88f7fc4
commit 3270e28b3d

View File

@@ -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 <app-root> 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() });