Delay Angular 2 bootstrapping until DOMContentLoaded

This commit is contained in:
SteveSandersonMS
2016-09-19 16:56:50 +01:00
parent ca99a2304c
commit 41f1f6fe82

View File

@@ -18,4 +18,6 @@ if (hotModuleReplacement) {
// Boot the application
const platform = platformUniversalDynamic();
document.addEventListener('DOMContentLoaded', () => {
platform.bootstrapModule(AppModule);
});