Which Angular lifecycle hook is invoked when the value of an input property changes?
- ngAfterViewInit
- ngDoCheck
- ngOnChanges
- ngOnInit
The Angular lifecycle hook ngOnChanges is invoked when the value of an input property changes. Developers can use this hook to respond to input property changes.
Loading...
Related Quiz
- Which RxJS operator is commonly used to filter items emitted by an Observable based on a condition?
- You're tasked with creating a set of UI components that can be reused in non-Angular projects, such as React or Vue.js applications. Which Angular feature would be most suitable for this task?
- The _____ decorator allows you to access route parameters within an Angular component.
- When a service is provided at the root level, it is available throughout the entire _____.
- When creating a Route Resolver, it must implement the _____ interface.