ngn-on-changes
v10.0.1
Published
Typed Lifecycle hook (OnChanges) for Angular
Downloads
2
Maintainers
Readme
NgnOnChanges
Typed Lifecycle hook (OnChanges) for Angular
Supported Angular Version
Angular 10: 10.0.1 (LTS)
Installation
Use the node package manager to install ngn-on-changes.
npm i ngn-on-changes
Usage
Firstly, you need implements from NgnOnChanges with generic type
export class SomeComponent implements NgnOnChanges<SomeComponent> {
After that
ngOnChanges(changes: NgnComponentChanges<SomeComponent>): void {
// here's you logic
}