title: In Angular 4, can you work with variables in an *ngForOf loop?
body: <p>I'm trying to write a template which builds a list where each list entry contains data from the current iterator of a *ngForOf loop, and a bit from the previous iteration of the loop. The way to usually do that type of thing is to store the value of the iterator at the bottom of the loop in a tracking variable so the value is available in the next iteration of the loop. Can you do this type of thing in Angulary 4+? I've tried numerous things which don't seem to work.</p>