SimpleChange
class
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
}
See also
OnChanges
Constructor
constructor(previousValue: any, currentValue: any, firstChange: boolean)Parameters
|
Properties
Property | Description |
---|---|
previousValue: any
|
Declared in Constructor |
currentValue: any
|
Declared in Constructor |
firstChange: boolean
|
Declared in Constructor |
Methods
isFirstChange() |
---|
Check whether the new value is the first value assigned. |
isFirstChange(): booleanParametersThere are no parameters. Returns
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/core/SimpleChange