For the component there is a lifecycle which managed by Angular. For the component Angular can do the lifecycle operations such as creation, rendering, creation and rendering of children, check when the data binding chis change, destroy ...etc. So Angular offers hooks for these lifecycle event for doing additional user actions.
Here follows the sequence for angular lifecycle hooks execution
Hooks for child component
These hooks are only called for components and not directives
No comments:
Post a Comment