Angular calls lifecycle hook methods on directives and components as it creates, changes, and destroys them.
这个章节在 JavaScript 语种下还不可用。 建议您阅读TypeScript版本。