W3cubDocs

/Angular 2

DefaultIterableDiffer

Stable Class

Class Overview

class DefaultIterableDiffer implements IterableDiffer {
  constructor(_trackByFn?: TrackByFn)
  
  
  collection 
  length : number
  forEachItem(fn: Function)
  forEachOperation(fn: (item: CollectionChangeRecord, previousIndex: number, currentIndex: number) => void)
  forEachPreviousItem(fn: Function)
  forEachAddedItem(fn: Function)
  forEachMovedItem(fn: Function)
  forEachRemovedItem(fn: Function)
  forEachIdentityChange(fn: Function)
  diff(collection: any) : DefaultIterableDiffer
  onDestroy()
  check(collection: any) : boolean
  isDirty : boolean
  toString() : string
}

Class Description

Constructor

constructor(_trackByFn?: TrackByFn)

Class Details

collection
length : number
forEachItem(fn: Function)
forEachOperation(fn: (item: CollectionChangeRecord, previousIndex: number, currentIndex: number) => void)
forEachPreviousItem(fn: Function)
forEachAddedItem(fn: Function)
forEachMovedItem(fn: Function)
forEachRemovedItem(fn: Function)
forEachIdentityChange(fn: Function)
diff(collection: any) : DefaultIterableDiffer
onDestroy()
check(collection: any) : boolean
isDirty : boolean
toString() : string

exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/default_iterable_differ.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/core/index/DefaultIterableDiffer-class.html