diff options
| author | gdennie | 2013-10-17 20:06:48 -0400 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-26 20:09:09 +0100 | 
| commit | 9f2c8e935a28fce0e898a2739c389e3f8cbc08a5 (patch) | |
| tree | c5a0db89e09ce4f5c3e0d7c1c19745d1fa357ce0 /docs/content | |
| parent | 256fcb68842bfde2e4f1deef9eaa262753558732 (diff) | |
| download | angular.js-9f2c8e935a28fce0e898a2739c389e3f8cbc08a5.tar.bz2 | |
Clarification stemming from my own issues
It is instructive to give literal examples that reflect common (my) experience of the problem. :)
Diffstat (limited to 'docs/content')
| -rw-r--r-- | docs/content/error/compile/tplrt.ngdoc | 4 | 
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: | 
