This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

DefaultIterableDiffer

npm Package @angular/core
Module import { DefaultIterableDiffer } from '@angular/core';
Source core/src/change_detection/differs/default_iterable_differ.ts

Deprecation Notes

v4.0.0 - Should not be part of public API.

Overview

      
      class DefaultIterableDiffer<V> implements IterableDiffer, IterableChanges {
  constructor(trackByFn?: TrackByFunction<V>)
  get length: number
  get collection: V[] | Iterable<V> | null
  forEachItem(fn: (record: IterableChangeRecord_<V>) => void)
  forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void)
  forEachPreviousItem(fn: (record: IterableChangeRecord_<V>) => void)
  forEachAddedItem(fn: (record: IterableChangeRecord_<V>) => void)
  forEachMovedItem(fn: (record: IterableChangeRecord_<V>) => void)
  forEachRemovedItem(fn: (record: IterableChangeRecord_<V>) => void)
  forEachIdentityChange(fn: (record: IterableChangeRecord_<V>) => void)
  diff(collection: NgIterable<V>): DefaultIterableDiffer<V> | null
  onDestroy()
  check(collection: NgIterable<V>): boolean
  get isDirty: boolean
}
    

Constructor

      
      constructor(trackByFn?: TrackByFunction<V>)
    

Members

      
      get length: number
    

      
      get collection: V[] | Iterable<V> | null
    

      
      forEachItem(fn: (record: IterableChangeRecord_<V>) => void)
    

      
      forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void)
    

      
      forEachPreviousItem(fn: (record: IterableChangeRecord_<V>) => void)
    

      
      forEachAddedItem(fn: (record: IterableChangeRecord_<V>) => void)
    

      
      forEachMovedItem(fn: (record: IterableChangeRecord_<V>) => void)
    

      
      forEachRemovedItem(fn: (record: IterableChangeRecord_<V>) => void)
    

      
      forEachIdentityChange(fn: (record: IterableChangeRecord_<V>) => void)
    

      
      diff(collection: NgIterable<V>): DefaultIterableDiffer<V> | null
    

      
      onDestroy()
    

      
      check(collection: NgIterable<V>): boolean
    

      
      get isDirty: boolean