Skip to content

Commit a59976b

Browse files
eddiemongepetebacondarwin
authored andcommitted
docs(errors/compile/tplrt): display html block as code
HTML elements were getting parsed by as HTML elements Closes angular#4827
1 parent 40d1e10 commit a59976b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/error/compile/tplrt.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
When a directive is declared with `template` (or `templateUrl`) and `replace` mode on, the template
77
must have exactly one root element. That is, the text of the template property or the content
88
referenced by the templateUrl must be contained within a single html element.
9-
For example, '<p>blah <em>blah</em> blah</p>' instead of simply 'blah <em>blah</em> blah'.
9+
For example, `<p>blah <em>blah</em> blah</p>` instead of simply `blah <em>blah</em> blah`.
1010
Otherwise, the replacement operation would result in a single element (the directive) being replaced
1111
with multiple elements or nodes, which is unsupported and not commonly needed in practice.
1212

0 commit comments

Comments
 (0)