13 lines
1.4 KiB
HTML
Executable file
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>'s expression. The expression should be in the form '<em>item</em> in <em>collection</em>[ track by <em>id</em>]'.</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 'in' and 'track by' 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>
|