DefaultIterableDiffer

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部