diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/$compile/uterdir.ngdoc | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/$compile/uterdir.ngdoc')
| -rw-r--r-- | docs/content/error/$compile/uterdir.ngdoc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/content/error/$compile/uterdir.ngdoc b/docs/content/error/$compile/uterdir.ngdoc new file mode 100644 index 00000000..c1f263f9 --- /dev/null +++ b/docs/content/error/$compile/uterdir.ngdoc @@ -0,0 +1,34 @@ +@ngdoc error +@name $compile:uterdir +@fullName Unterminated Directive +@description + +This error occurs when using multi-element directives and a `directive-start` attribute fails to form a matching pair with a corresponding `directive-end` attribute. +A `directive-start` should have a matching `directive-end` on a sibling node in the DOM. For instance, + +``` +<table> + <tr ng-repeat-start="item in list">I get repeated</tr> + <tr ng-repeat-end>I also get repeated</tr> +</table> +``` + +is a valid example. + +This error can occur in several different ways. One is by leaving out the `directive-end` attribute, like so: + +``` +<div> + <span foo-start></span> +</div> +``` + +Another is by nesting a `directive-end` inside of `directive-start`, or vice versa: + +``` +<div> + <span foo-start><span foo-end></span></span> +</div> +``` + +To avoid this error, make sure each `directive-start` you use has a matching `directive-end` on a sibling node in the DOM. |
