Angular calls lifecycle hook methods on directives and components as it creates, changes, and destroys them.
This page is not yet available in JavaScript. We recommend reading it in TypeScript.