From caa71c2772284c3d108c41ac120491b7137fabf7 Mon Sep 17 00:00:00 2001 From: Ken Sheedlo Date: Thu, 8 Aug 2013 10:30:10 -0700 Subject: docs(minerr): add description for $compile:utrat Closes #3507 --- docs/content/error/compile/utrat.ngdoc | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3