Skip to content

Commit 05b4431

Browse files
committed
address comments
1 parent 7490856 commit 05b4431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdk-experimental/scrolling/virtual-for-of.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ export class CdkVirtualForOf<T> implements CollectionViewer, DoCheck, OnDestroy
271271
});
272272

273273
// Update $implicit for any items that had an identity change.
274-
changes.forEachIdentityChange((record: any) => {
275-
const view = this._viewContainerRef.get(record.currentIndex) as
274+
changes.forEachIdentityChange((record: IterableChangeRecord<T>) => {
275+
const view = this._viewContainerRef.get(record.currentIndex!) as
276276
EmbeddedViewRef<CdkVirtualForOfContext<T>>;
277277
view.context.$implicit = record.item;
278278
});

0 commit comments

Comments
 (0)