UNPKG

knowhow-server

Version:

A personal workflow engine that can manage and use any network connected host

26 lines (25 loc) 1.8 kB
<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/compile/uterdir.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Unterminated Directive</code> <div><span class="hint">error in component <code ng:non-bindable="">$compile</code> </span> </div> </h1> <div><pre class="minerr-errmsg" error-display="Unterminated attribute, found '{0}' but no matching '{1}' found.">Unterminated attribute, found '{0}' but no matching '{1}' found.</pre> <h2 id="description">Description</h2> <div class="description"><div class="-compile-page -compile-uterdir-page"><p>This error occurs when using multi-element directives and a <code>directive-start</code> attribute fails to form a matching pair with a corresponding <code>directive-end</code> attribute. A <code>directive-start</code> should have a matching <code>directive-end</code> on a sibling node in the DOM. For instance,</p> <pre><code>&lt;table&gt; &lt;tr ng-repeat-start=&quot;item in list&quot;&gt;I get repeated&lt;/tr&gt; &lt;tr ng-repeat-end&gt;I also get repeated&lt;/tr&gt; &lt;/table&gt;</code></pre> <p>is a valid example.</p> <p>This error can occur in several different ways. One is by leaving out the <code>directive-end</code> attribute, like so:</p> <pre><code>&lt;div&gt; &lt;span foo-start&gt;&lt;/span&gt; &lt;/div&gt;</code></pre> <p>Another is by nesting a <code>directive-end</code> inside of <code>directive-start</code>, or vice versa:</p> <pre><code>&lt;div&gt; &lt;span foo-start&gt;&lt;span foo-end&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;</code></pre> <p>To avoid this error, make sure each <code>directive-start</code> you use has a matching <code>directive-end</code> on a sibling node in the DOM.</p> </div></div> </div>