Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Loops - index value dose not change in "if" statement during iteration #2603
I am using each attribute loop to show set of items. I am having issue with displaying some of them when I use if statement in loop based on index of the item in array. Index passed to if statement that checks if item can be shown is always 0.
Simple test case would be:
In case above nothing is displayed. In each iteration the value of index is always 0 and value of the val changes correctly. I guess workaround would be using
It might be same issue as #2412 but it was reported a while ago and a bit of code might have changed since then.
Chrome Version 67.0.3396.87 (Official Build) (64-bit)
For sure in 3.10.2
Edit: Updated comment a bit, to make it match example from plnkr.co