aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/ngOptions/iexp.ngdoc
blob: a4515048583ea1289c47c92034c365aff523ffb8 (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 api/ng.directive:select select} directive docs.