You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Default Angular Template creates duplicate html and body tags #1233
Create a new ASP.NET Core 2.0 Web App with the default Angular template. Build and run. View the source. Note the html, head, and body tags located within the tag. The console also enumerates the errors. This is obviously unintended, and I assume is an artifact of the pre-renderer.
@ltctech They only fixed it temporarily, then brought back the issue in a later version unfortunately.
@MarkPieszak has been working with the Angular team on hopefully improving the APIs around server-side rendering so we can get the distinct outputs (HTML, title, styles, etc.) separately instead of them all being mashed together in a big HTML document string. If Angular does implement that then we'll certainly make use of it, but failing that @ltctech's workaround is as good as it gets.
Activity
dmlsrc commentedon Aug 28, 2017
I'm not sure why this is still a problem even though it was supposedly fixed:
angular/universal#347
I ended up putting the following in boot.server.ts for now:
SteveSandersonMS commentedon Sep 6, 2017
@ltctech They only fixed it temporarily, then brought back the issue in a later version unfortunately.
@MarkPieszak has been working with the Angular team on hopefully improving the APIs around server-side rendering so we can get the distinct outputs (HTML, title, styles, etc.) separately instead of them all being mashed together in a big HTML document string. If Angular does implement that then we'll certainly make use of it, but failing that @ltctech's workaround is as good as it gets.
pravin271 commentedon Dec 12, 2017
@anyone found a solution to this problem?