1

The great article posted yesterday by Kara Erickson @ http://angularjs.blogspot.com/2016/04/5-rookie-mistakes-to-avoid-with-angular.html demos:

<p *ngFor="#item of items; trackBy:myTrackBy; #i=index"> 
   {{i}}: {{item}}
</p>

and I am wondering what is

trackBy:myTrackBy?

it's a custom function that gets a param passed? I would have asked on the blog but can't post replies, thus posting here

and code sample of trackBy:myTrackBy would look be GREATLY appreciated

TX

Sean

born2net
  • 24,129
  • 22
  • 65
  • 104

0 Answers0