This repository was archived by the owner on Apr 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 519
Duplicate <html> tag in markup for angular #251
Comments
I believe this is actually a known thing related to a angular-universal bug angular/universal#347 |
While it is not supported by angular could we update return bootloader.serializeApplication(config).then(html => {
return { html: html
.replace('<!DOCTYPE html><html><head><title></title></head><body><app>', '')
.replace('</app></body></html>', '') };
}); ? |
@andreymir Absolutely - that's a good workaround for now. We don't want to put that in the templates because it looks confusing and we're hoping the angular/universal#347 issues will get fixed soon anyway. But for your own use in your own project, your workaround looks ideal. |
I still owe you a fix for 347 in Universal, apologies been swamped lately! @SteveSandersonMS |
This was referenced Jul 17, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For angular template, with server-side rendering enabled the resulting markup is invalid. It contains duplicate
<html>
and<body>
tags.The text was updated successfully, but these errors were encountered: