aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/ngRepeat/iidexp.ngdoc
blob: 8d9309e2c1410736ac9d006cd9a27adab9243269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@ngdoc error
@name ngRepeat:iidexp
@fullName Invalid Identifier
@description

Occurs when there is an error in the identifier part of {@link api/ng.directive:ngRepeat ngRepeat}'s expression.

To resolve, use either a valid identifier or a tuple (_key_, _value_) where both _key_ and _value_ are valid identifiers.

Examples of *invalid* syntax:

```
<div ng-repeat="33 in users"></div>
<div ng-repeat="someFn() in users"></div>
<div ng-repeat="some user in users"></div>
```

Examples of *valid* syntax:

```
<div ng-repeat="user in users"></div>
<div ng-repeat="(id, user) in userMap"></div>
```

Please consult the api documentation of {@link api/ng.directive:ngRepeat ngRepeat} to learn more about valid syntax.