Demonstrate lazy-loading for Webpack-bundled KO components

This commit is contained in:
SteveSandersonMS
2016-03-08 17:03:09 +00:00
parent 25ba7986d8
commit 11d4873164
5 changed files with 36 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ import 'bootstrap/dist/css/bootstrap.css';
import './css/site.css';
import * as ko from 'knockout';
import { createHistory } from 'history';
import './webpack-component-loader';
// Load and register the <app-root> component
ko.components.register('app-root', require('./components/app-root/app-root').default);