Angular, Typescript, JavaScript.
$first; let last = $last, even = $even, odd = $odd; let count = $count) { <li><strong>{{item.name}}</strong> index={{index}} first={{first}} last={{last}} even={{even}} odd={{odd}} count={{count}}</li> } </ul> Each item in the collection needs to have a unique property (like the id), and we need to