填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

SimpleChange

Represents a basic change from a previous to a new value for a single property on a directive instance. Passed as a value in a SimpleChangesobject to the ngOnChanges hook.

      
      class SimpleChange {
  constructor(previousValue: any, currentValue: any, firstChange: boolean)
  previousValue: any
  currentValue: any
  firstChange: boolean
  isFirstChange(): boolean
}
    

参见

构造函数

constructor(previousValue: any, currentValue: any, firstChange: boolean)
      
      constructor(previousValue: any, currentValue: any, firstChange: boolean)
    
参数
previousValue any
currentValue any
firstChange boolean

属性

属性说明
previousValue: anyDeclared in constructor.
currentValue: anyDeclared in constructor.
firstChange: booleanDeclared in constructor.

方法

Check whether the new value is the first value assigned.

isFirstChange(): boolean
      
      isFirstChange(): boolean
    
参数

没有参数。

返回值

boolean