Podcast/lib/angular/docs/partials/error/ngRepeat:iexp.html
2013-08-21 19:46:51 +02:00

13 lines
1.4 KiB
HTML
Executable file

<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/ngRepeat/iexp.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Invalid Expression</code>
<div><span class="hint">error in component <code ng:non-bindable="">ngRepeat</code>
</span>
</div>
</h1>
<div><pre class="minerr-errmsg" error-display="Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.">Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.</pre>
<h2 id="Description">Description</h2>
<div class="description"><div class="ngrepeat-page ngrepeat-iexp-page"><p>Occurs when there is a syntax error in an <a href="api/ng.directive:ngRepeat"><code>ngRepeat</code></a>&#39;s expression. The expression should be in the form &#39;<em>item</em> in <em>collection</em>[ track by <em>id</em>]&#39;.</p>
<p>Be aware, the ngRepeat directive parses the expression using a regex before sending <em>collection</em> and optionally <em>id</em> to the AngularJS parser. This error comes from the regex parsing.</p>
<p>To resolve, identify and fix errors in the expression, paying special attention to the &#39;in&#39; and &#39;track by&#39; keywords in the expression.</p>
<p>Please consult the api documentation of <a href="api/ng.directive:ngRepeat"><code>ngRepeat</code></a> to learn more about valid syntax.</p>
</div></div>
</div>