Duplicate <html> tag in markup for angular #180

Closed
opened 2025-08-09 17:15:18 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @hegdevnayak on 2/10/2018

Angular template, with server-side rendering contains duplicate <html> and tags.
There are workaround solution to strip off the code manually. Solutions given is for angular 2 (#251 and #1080 ), please suggest/give the solution for Angualr4

<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home Page - TestAngular</title>
<base href="/" />
<link rel="stylesheet" href="/dist/vendor.css" />
<link rel="stylesheet" href="/dist/styles.css" />
</head>
<body>
<app><!DOCTYPE html><html><head><title></title></head><body><app><h1>My First Angular App</h1></app></body></html></app>
</body>
</html>

*Originally created by @hegdevnayak on 2/10/2018* Angular template, with server-side rendering contains duplicate <html> and <body> tags. There are workaround solution to strip off the code manually. Solutions given is for angular 2 (#251 and #1080 ), please suggest/give the solution for Angualr4 `<html>` ` <head>` ` <meta charset="utf-8" />` ` <meta name="viewport" content="width=device-width, initial-scale=1.0" />` `<title>Home Page - TestAngular</title>` `<base href="/" />` ` <link rel="stylesheet" href="/dist/vendor.css" />` `<link rel="stylesheet" href="/dist/styles.css" />` ` </head>` `<body>` `<app><!DOCTYPE html><html><head><title></title></head><body><app><h1>My First Angular App</h1></app></body></html></app>` `</body>` `</html>`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#180
No description provided.