diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets.js b/src/widgets.js index a9d42bdf..392771e3 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -1143,6 +1143,9 @@ angularWidget('@ng:repeat', function(expression, element){ childScope[valueIdent] = collection[key]; if (keyIdent) childScope[keyIdent] = key; lastIterElement = childScope.$element; + childScope.$position = index == 0 + ? 'first' + : (index == collectionLength - 1 ? 'last' : 'middle'); childScope.$eval(); } else { // grow children |
