UNPKG

knowhow-server

Version:

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

14 lines (13 loc) 1.2 kB
<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 &#39;ngOptions&#39; is passed an expression that isn&#39;t in an expected form.</p> <p>Here&#39;s an example of correct syntax:</p> <pre><code>&lt;select ng-model=&quot;color&quot; ng-options=&quot;c.name for c in colors&quot;&gt;</code></pre> <p>For more information on valid expression syntax, see &#39;ngOptions&#39; in <a href="api/ng.directive:select"><code>select</code></a> directive docs.</p> </div></div> </div>