The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Initialize Angular Components with Lifecycle Hooks

Initialize Angular Components with Lifecycle Hooks

3:35
Angular exposes key events within a component's lifecycle so that we can apply our own custom logic. In this lesson, we will learn how to leverage component lifecycle hooks to adhere to best practices of keeping our initialization logic out of our constructor.
Watch this lesson now
Avatar
egghead.io

Angular exposes key events within a component's lifecycle so that we can apply our own custom logic. In this lesson, we will learn how to leverage component lifecycle hooks to adhere to best practices of keeping our initialization logic out of our constructor.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?