Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

IterableDiffer

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.

      
      interface IterableDiffer<V> {
diff(object: NgIterable<V>): IterableChanges<V> | null }

Class implementations

Methods

Compute a difference between the previous state and the new object state.

      
      diff(object: NgIterable<V>): IterableChanges<V> | null
    
Parameters
object NgIterable<V>

containing the new value.

Returns

IterableChanges<V> | null: an object describing the difference. The return value is only valid until the next diff() invocation.