diff --git a/docs/content/error/compile/utrat.ngdoc b/docs/content/error/compile/utrat.ngdoc index 64ffa223..a6c647bb 100644 --- a/docs/content/error/compile/utrat.ngdoc +++ b/docs/content/error/compile/utrat.ngdoc @@ -1,4 +1,34 @@ @ngdoc error @name $compile:utrat -@fullName Unterminated Attribute +@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, + +``` + + I get repeated + I also get repeated +
+``` + +is a valid example. + +This error can occur in several different ways. One is by leaving out the `directive-end` attribute, like so: + +``` +
+ +
+``` + +Another is by nesting a `directive-end` inside of `directive-start`, or vice versa: + +``` +
+ +
+``` + +To avoid this error, make sure each `directive-start` you use has a matching `directive-end` on a sibling node in the DOM.