Angular - Lifecycle Hooks
Which of the following is the correct syntax for implementing
ngOnChanges in an Angular component?ngOnChanges in an Angular component?ngOnChanges expects a parameter of type SimpleChanges and returns void.
ngOnChanges(changes: SimpleChanges): void { } matches the correct signature. Others have wrong parameter types or return types.
ngOnChanges syntax [OK]SimpleChanges type and void return for ngOnChanges [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions