Angular, Typescript, JavaScript.
array in the component's class: collection = [ { id: 1, name: 'Item 1' }, { id: 2, name: 'Item 2' }, { id: 3, name: 'Item 3' } ]; We can use an @for (item of items; track item.id) { block to render a collection's elements: <ul> @for (item of collection; track item.id; let index = $index, first =