aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/ngOptions/iexp.ngdoc
blob: 47f387d8e8d7b893189290904fa8827753c3fa08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@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 ng.directive:select select} directive docs.