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.
API
class SimpleChange<T = any> {
constructor(previousValue: T, currentValue: T, firstChange: boolean): SimpleChange<T>;
override previousValue: T;
override currentValue: T;
override firstChange: boolean;
isFirstChange(): boolean;
}
constructor
SimpleChange<T>previousValue
TcurrentValue
TfirstChange
booleanisFirstChange
booleanCheck whether the new value is the first value assigned.
@returns
boolean
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/SimpleChange