aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide
diff options
context:
space:
mode:
authormmieszek2013-10-16 23:19:24 +0200
committerPete Bacon Darwin2013-10-25 21:46:31 +0100
commite7177d3159c5aa5616899196ce28f9b4f154b3c6 (patch)
treec39bdbf65a548b87b696453b2594858ae2c1567d /docs/content/guide
parent3e79c9b09850899038f8609649de60ec326b8d10 (diff)
downloadangular.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')
-rw-r--r--docs/content/guide/expression.ngdoc2
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>