13 lines
1.2 KiB
HTML
Executable file
13 lines
1.2 KiB
HTML
Executable file
<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/ngOptions/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="">ngOptions</code>
|
|
</span>
|
|
</div>
|
|
</h1>
|
|
<div><pre class="minerr-errmsg" error-display="Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}">Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}</pre>
|
|
<h2 id="Description">Description</h2>
|
|
<div class="description"><div class="ngoptions-page ngoptions-iexp-page"><p>This error occurs when 'ngOptions' is passed an expression that isn't in an expected form.</p>
|
|
<p>Here's an example of correct syntax:</p>
|
|
<pre><code><select ng-model="color" ng-options="c.name for c in colors"></code></pre>
|
|
<p>For more information on valid expression syntax, see 'ngOptions' in <a href="api/ng.directive:select"><code>select</code></a> directive docs.</p>
|
|
</div></div>
|
|
</div>
|