DefaultIterableDiffer

class deprecated

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

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/core/DefaultIterableDiffer