IterableDiffer
interface
npm Package | @angular/core |
---|---|
Module | import { IterableDiffer } from '@angular/core'; |
Source | core/src/change_detection/differs/iterable_differs.ts |
Interface Overview
interface IterableDiffer<V> { diff(object: NgIterable<V>): IterableChanges<V> | null }
Description
A strategy for tracking changes over time to an iterable. Used by NgForOf
to respond to changes in an iterable by effecting equivalent changes in the DOM.
Class Implementations
-
DefaultIterableDiffer
Members
diff(object: NgIterable<V>): IterableChanges<V> | null
Compute a difference between the previous state and the new object
state.
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/core/IterableDiffer