Enable Webpack dev middleware and basic (non-state-preserving) HMR for Angular template

This commit is contained in:
SteveSandersonMS
2016-02-29 10:48:26 +00:00
parent c1b808f8af
commit d102fdb363
3 changed files with 22 additions and 2 deletions

View File

@@ -7,3 +7,10 @@ import { Http, HTTP_PROVIDERS } from 'angular2/http';
import { App } from './components/app/app';
bootstrap(App, [router.ROUTER_BINDINGS, HTTP_PROVIDERS, FormBuilder]);
// Basic hot reloading support. Automatically reloads and restarts the Angular 2 app each time
// you modify source files. This will not preserve any application state other than the URL.
declare var module: any;
if (module.hot) {
module.hot.accept();
}