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 collection
  get length: number
  forEachItem(fn: (record: IterableChangeRecord_<V>) => void)
  forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number|null, currentIndex: number|null) =>...)
  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
  toString(): string
}

Constructor

constructor(trackByFn?: TrackByFunction<V>)

Members

get collection

get length: number

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

toString(): string

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