Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Duplicate <html> tag in markup for angular #1525

Closed
hegdevnayak opened this issue Feb 10, 2018 · 1 comment
Closed

Duplicate <html> tag in markup for angular #1525

hegdevnayak opened this issue Feb 10, 2018 · 1 comment

Comments

@hegdevnayak
Copy link

hegdevnayak commented Feb 10, 2018

Angular template, with server-side rendering contains duplicate 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>

@SteveSandersonMS
Copy link
Member

This is true for the pre-Angular CLI template. You can manually strip out the duplicate markup using the same sort of approach described at #1080 (comment) if it's necessary for your app.

This issue is resolved via the new Angular CLI-based templates. Closing because there's nothing else for us to do (it's fixed in the latest templates).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants