Lifecycle Hooks
Angular provides lifecycle hooks that give visibility into key life moments of components and directives. These hooks are a set of methods that can be implemented to tap into the lifecycle events of components or directives. They are crucial for performing tasks like initializing data, cleaning up resources, or reacting to changes.