Can you explain the lifecycle hooks in Angular and when they are executed?
In Angular, a component goes through a series of steps, known as lifecycle hooks, from creation to destruction. Angular provides a number of lifecycle hooks that allow you to tap…