ng-track-by
Version:
trackBy and trackById directives which provide TrackByFunction to ngForTrackBy
19 lines (18 loc) • 858 B
TypeScript
import { NgForOf } from "@angular/common";
import { OnInit } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export declare class TrackByDirective implements OnInit {
private ngForOf;
trackBy: string;
constructor(ngForOf: NgForOf<any, any>);
ngOnInit(): void;
private createTrackByFn;
static ɵfac: i0.ɵɵFactoryDeclaration<TrackByDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TrackByDirective, "[trackBy]", never, { "trackBy": "trackBy"; }, {}, never>;
}
export declare class TrackByModule {
static ɵfac: i0.ɵɵFactoryDeclaration<TrackByModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<TrackByModule, [typeof TrackByDirective], [typeof i1.CommonModule], [typeof TrackByDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<TrackByModule>;
}