docs(error/$compile/tplrt): note that html comments can cause this

This commit is contained in:
Dylan Semler
2014-06-03 20:36:04 -04:00
committed by Brian Ford
parent eae658fd96
commit f37c6f9f73
+14
View File
@@ -37,3 +37,17 @@ elements. For example:
```
<b>Hello</b> World!
```
Watch out for html comments at the beginning or end of templates, as these can cause this error as
well. Consider the following template:
```
<div class='container'>
<div class='wrapper>
...
</div> <!-- wrapper -->
</div> <!-- container -->
```
The `<!-- container -->` comment is interpreted as a second root element and causes the template to
be invalid.