Ich habe ein neues Projekt erstellt (mit Angular CLI - 25/05/17) und den folgenden HTML-Code in eine neue Komponente kopiert. Es sieht aus wie einfacher HTML-Code - der als eigene HTML-Seite funktionierte -, aber er kompiliert nicht mehr, da er in Angular ist, was mich am Kopf kratzt. Ich habe dieses Problem untersucht und es scheint für jede Person anders zu sein - einige sind Tippfehler im Code und andere sind falsch geordnete Tags. Irgendwelche Ideen?Angular: Fehler: Template-Parse-Fehler: Unerwartetes schließendes Tag
Ich erhalte diese Fehlermeldung:
Error: Template parse errors:
Unexpected closing tag "table". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags ("
</th>
</tr>
[ERROR ->]</table>
</div>
"): ng:///AppModule/[email protected]:2
Unexpected closing tag "div". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags ("
</tr>
</table>
[ERROR ->]</div>
<!--
"): ng:///AppModule/[email protected]:0
Und mein Code:
<div id="footerRoot">
<table class="footerfont" width="100%">
<col width="75%">
<col width="25%">
<tr>
<th>
<ol class="zeroMargin breadcrumb">
<li><a href="" target="_blank" class="link-external">State</a></li>
<li><a href="">Accessibility</a></li>
<li><a href="" target="_blank" class="link-external">Copyright & Disclaimer</a></li>
<li><a href="" target="_blank" class="link-external">Privacy</a></li>
<li><a href="">Sitemap</a></li>
<li><a href="">Feedback</a></li>
</ol>
</th>
<th class="footerfont">
<div>
© BLAH
</div>
<div>
Last Updated: <time datetime="18 April 2017">18 April 2017</time>
</div>
</th>
</tr>
</table>
</div>