Angular 2+ Lifecycle - BEHIND JAVA

Angular 2+ Lifecycle

Share This

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

http://plnkr.co/edit/gIQCdWyb4sL4ZpDIyrFV?p=preview

No comments:

Post a Comment

Pages