knowhow-server
Version:
A personal workflow engine that can manage and use any network connected host
26 lines (25 loc) • 1.8 kB
HTML
<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><table>
<tr ng-repeat-start="item in list">I get repeated</tr>
<tr ng-repeat-end>I also get repeated</tr>
</table></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><div>
<span foo-start></span>
</div></code></pre>
<p>Another is by nesting a <code>directive-end</code> inside of <code>directive-start</code>, or vice versa:</p>
<pre><code><div>
<span foo-start><span foo-end></span></span>
</div></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>