aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/error')
-rw-r--r--docs/content/error/compile/tplrt.ngdoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/content/error/compile/tplrt.ngdoc b/docs/content/error/compile/tplrt.ngdoc
index 78fe16b1..39e3271f 100644
--- a/docs/content/error/compile/tplrt.ngdoc
+++ b/docs/content/error/compile/tplrt.ngdoc
@@ -4,7 +4,9 @@
@description
When a directive is declared with `template` (or `templateUrl`) and `replace` mode on, the template must have exactly one root element.
-Otherwise the replacement operation would result in a single element being replaced with multiple elements or nodes, which is unsupported and not commonly needed in practice.
+That is, the text of the template property or the referenced by the templateUrl must be contained within an html elemen.
+For example, '<p>blah blah blah</p>' instead of simply 'blah blah blah'.
+Otherwise the replacement operation would result in a single element (the directive) being replaced with multiple elements or nodes, which is unsupported and not commonly needed in practice.
For example a directive with definition: