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
For an iterable, this would be true if hasNext is false. The length approach wouldn't work for iterables. A workaround that we're using right now is item == items.last, but this has issues if equals is overridden.
Activity
matanlurey commentedon Jul 17, 2015
Just to clarify, you can do
var items of items, var last = items.length - 1today, right?matanlurey commentedon Jul 17, 2015
Also, this makes sense for a
List, but what if it is anIterableand doing a length calculation is expensive?siggisim commentedon Jul 17, 2015
For an iterable, this would be true if hasNext is false. The length approach wouldn't work for iterables. A workaround that we're using right now is item == items.last, but this has issues if equals is overridden.
feat(NgFor): $last property support
pkozlowski-opensource commentedon Sep 16, 2015
This was already fixed by be95411
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.