Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 41f1f6f

Browse filesBrowse files
Delay Angular 2 bootstrapping until DOMContentLoaded
1 parent ca99a23 commit 41f1f6f
Copy full SHA for 41f1f6f

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎templates/Angular2Spa/ClientApp/boot-client.ts‎

Copy file name to clipboardExpand all lines: templates/Angular2Spa/ClientApp/boot-client.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ if (hotModuleReplacement) {
1818

1919
// Boot the application
2020
const platform = platformUniversalDynamic();
21-
platform.bootstrapModule(AppModule);
21+
document.addEventListener('DOMContentLoaded', () => {
22+
platform.bootstrapModule(AppModule);
23+
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.