angular.js/docs/content/error/ngOptions/iexp.ngdoc

14 lines
400 B
Text
Raw Normal View History

2013-07-13 00:42:27 +00:00
@ngdoc error
@name ngOptions:iexp
@fullName Invalid Expression
@description
This error occurs when 'ngOptions' is passed an expression that isn't in an expected form.
Here's an example of correct syntax:
```
<select ng-model="color" ng-options="c.name for c in colors">
```
For more information on valid expression syntax, see 'ngOptions' in {@link api/ng.directive:select select} directive docs.