You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Currently the $position property inside the repeat directive is either 'first', 'middle' or 'last'.
But if the list only has one item, the $position is set to 'first' by angular, even though it is actually both the first and last item.
Since this subtlety can't (reasonably) be represented by a single variable, something else is required. One way to solve it would be to have three boolean properties, $first, $middle and $last instead.
The text was updated successfully, but these errors were encountered:
Currently the $position property inside the repeat directive is either 'first', 'middle' or 'last'.
But if the list only has one item, the $position is set to 'first' by angular, even though it is actually both the first and last item.
Since this subtlety can't (reasonably) be represented by a single variable, something else is required. One way to solve it would be to have three boolean properties, $first, $middle and $last instead.
The text was updated successfully, but these errors were encountered: