diff options
| author | Max | 2012-05-02 18:51:31 +0200 |
|---|---|---|
| committer | Igor Minar | 2012-05-22 14:18:15 -0700 |
| commit | 1d388676e3b97b6171fc498e82545bd437ee6fd1 (patch) | |
| tree | a09e472fc4dc0fb03ce0d5d25160f6a8f3f7ce9d /src/ngMock/angular-mocks.js | |
| parent | 84542d2431d20de42d6ec27c9d3435dd72dbe2ee (diff) | |
| download | angular.js-1d388676e3b97b6171fc498e82545bd437ee6fd1.tar.bz2 | |
fix(ngRepeat): expose $first, $middle and $last instead of $position
$position marker doesn't work well in cases when we have just one item
in the list because then the item is both the first and last. To solve
this properly we need to expose individual $first and $middle and $last
flags.
BREAKING CHANGE: $position is not exposed in repeater scopes any more
To update, search for $position and replace it with one of $first,
$middle or $last.
Closes #912
Diffstat (limited to 'src/ngMock/angular-mocks.js')
0 files changed, 0 insertions, 0 deletions
