I am trying to use the component life cycle hooks that are exposed by Angular 4 to process certain information related to the component.
When I tried to search I was abl
In Angular all lifecycle hooks are triggered as part of change detection by the framework. To learn more about the process read:
For example in Java following lines of code would trigger the constructor in 'String' class:
Constructor is not a lifecycle hook and is triggered when a component is created. It's similar mechanics to the one you showed which includes calling a component constructor with new
.
To learn more read: