angularjs - How to track the last Variable of *ngFor in the ngForTrackBy function of Angular 2 -


if use *ngfor="let item of items; let = index; let islast=last" value of islast in ui using {{islast}}. if use ngfortrackby: myfunction , function support index:number , obj : contains value of item.

so how 1 "last" variable stated in https://angular.io/docs/ts/latest/api/common/index/ngfor-directive.html in custom ngfortrackby function? possible?

is there way track *ngfor completed rendering, can limit number of row shown scroll-able window?


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -