aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngMock/angular-mocks.js
diff options
context:
space:
mode:
authorMax2012-05-02 18:51:31 +0200
committerIgor Minar2012-05-22 14:18:15 -0700
commit1d388676e3b97b6171fc498e82545bd437ee6fd1 (patch)
treea09e472fc4dc0fb03ce0d5d25160f6a8f3f7ce9d /src/ngMock/angular-mocks.js
parent84542d2431d20de42d6ec27c9d3435dd72dbe2ee (diff)
downloadangular.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