Skip to content

Commit

Permalink
Merge pull request #309 from plamoni/fix-295
Browse files Browse the repository at this point in the history
Resolve TrackByFn parameter issue
  • Loading branch information
santoshyadavdev authored Sep 30, 2020
2 parents eb7923e + bfe1129 commit 31f9221
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class NguCarousel<T> extends NguCarouselStore

ngOnInit() {
this._dataDiffer = this._differs.find([]).create((_i: number, item: any) => {
return this.trackBy ? this.trackBy(item.dataIndex, item.data) : item;
return this.trackBy ? this.trackBy(_i, item) : item;
});
}

Expand Down

0 comments on commit 31f9221

Please sign in to comment.