Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // template
- <li *ngFor="let item of items; trackBy: trackByFn">{{ item }}</li>
- // component
- trackByFn(index, item) {
- return item.id; // unique id
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement