Skip to content

Commit 446ee4e

Browse files
jbdeboerIgorMinar
authored andcommitted
docs(minerr): Adds a description for ngRepeat.iidexp
Closes angular#3441
1 parent 63b6c5b commit 446ee4e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

docs/content/error/ngRepeat/iidexp.ngdoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,24 @@
22
@name ngRepeat:iidexp
33
@fullName Invalid Identifier
44
@description
5+
6+
Occurs when there is an error in the identifier part of {@link api/ng.directive:ngRepeat ngRepeat}'s expression.
7+
8+
To resolve, use either a valid identifier or a tuple (_key_, _value_) where both _key_ and _value_ are valid identifiers.
9+
10+
Examples of *invalid* syntax:
11+
12+
```
13+
<div ng-repeat="33 in users"></div>
14+
<div ng-repeat="someFn() in users"></div>
15+
<div ng-repeat="some user in users"></div>
16+
```
17+
18+
Examples of *valid* syntax:
19+
20+
```
21+
<div ng-repeat="user in users"></div>
22+
<div ng-repeat="(id, user) in userMap"></div>
23+
```
24+
25+
Please consult the api documentation of {@link api/ng.directive:ngRepeat ngRepeat} to learn more about valid syntax.

0 commit comments

Comments
 (0)