I am trying to learn what is the exact difference between these two life cycle hooks? Can anyone please explain me how to use them with any simple example? I just want to when exactly I should implement these interfaces?
Thank you.
Cheers.
view addresses the template of the component
content addresses the transcluded children of the current component (that you can transclude using the <ng-content></ng-content>
element).
For full details see https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html#!#afterview
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With