diff options
| author | mmieszek | 2013-10-16 23:19:24 +0200 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-25 21:46:31 +0100 |
| commit | e7177d3159c5aa5616899196ce28f9b4f154b3c6 (patch) | |
| tree | c39bdbf65a548b87b696453b2594858ae2c1567d /docs/content/guide/expression.ngdoc | |
| parent | 3e79c9b09850899038f8609649de60ec326b8d10 (diff) | |
| download | angular.js-e7177d3159c5aa5616899196ce28f9b4f154b3c6.tar.bz2 | |
docs(guide/expression): fix duplicate key error in example
The example that demonstrates how to parse expressions can fail if you
pass in the same expression twice. By using "track by $index" we can
fix this.
Closes #4472
Diffstat (limited to 'docs/content/guide/expression.ngdoc')
| -rw-r--r-- | docs/content/guide/expression.ngdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/guide/expression.ngdoc b/docs/content/guide/expression.ngdoc index 980bb136..89f48bfd 100644 --- a/docs/content/guide/expression.ngdoc +++ b/docs/content/guide/expression.ngdoc @@ -70,7 +70,7 @@ You can try evaluating different expressions here: <input type='text' ng-model="expr" size="80"/> <button ng-click="addExp(expr)">Evaluate</button> <ul> - <li ng-repeat="expr in exprs"> + <li ng-repeat="expr in exprs track by $index"> [ <a href="" ng-click="removeExp($index)">X</a> ] <tt>{{expr}}</tt> => <span ng-bind="$parent.$eval(expr)"></span> </li> |
