import {Component} from '@angular/core';

@Component({
  template: `
    <div>
      {{message}}
      @for (item of items; track trackFn($index)) {}
    </div>
  `,
})
export class MyApp {
  message = 'hello';
  items = [{name: 'one'}, {name: 'two'}, {name: 'three'}];

  trackFn(index: number) {
    return index;
  }
}
