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 SimpleChanges
object to the ngOnChanges
hook.
class SimpleChange {
constructor(previousValue: any, currentValue: any, firstChange: boolean)
previousValue: any
currentValue: any
firstChange: boolean
isFirstChange(): boolean
}
参见
构造函数
属性
属性 | 说明 |
---|---|
previousValue: any | Declared in constructor. |
currentValue: any | Declared in constructor. |
firstChange: boolean | Declared in constructor. |
方法
Check whether the new value is the first value assigned. |
参数没有参数。 返回值
|