Slight clean-up in KnockoutSpa's boot code
This commit is contained in:
parent
42e88f7fc4
commit
3270e28b3d
|
|
@ -2,9 +2,10 @@ import './css/site.css';
|
||||||
import * as ko from 'knockout';
|
import * as ko from 'knockout';
|
||||||
import { createHistory } from 'history';
|
import { createHistory } from 'history';
|
||||||
import './webpack-component-loader';
|
import './webpack-component-loader';
|
||||||
|
import AppRootComponent from './components/app-root/app-root';
|
||||||
|
|
||||||
// Load and register the <app-root> component
|
// 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
|
// Tell Knockout to start up an instance of your application
|
||||||
ko.applyBindings({ history: createHistory() });
|
ko.applyBindings({ history: createHistory() });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue