Angular components have a lifecycle. The stages include Create, Render, Create-render children, Process change, and Destroy. Angular permits hooks to tap into these stages: OnInit - initialization and data retrieval, OnChanges - action after changes to input properties, and OnDestroy - cleanup. We cover these common hooks in this video but demo OnInit.
- [Instructor] When an Angler application runs,…it's essentially a series of components…that are working together.…Now, each component goes through a lifecycle.…The component gets created, it renders information…that it needs to, then it does the same steps…for its children, it creates it, and then renders it,…and then the process is changes…when it's property are manipulated.…Finally, it goes through a step…of destroying information that it no longer needs,…as a cleanup process.…Angular provides us a set of hooks that allows us…to jump into any one of these phases, to execute code.…
Now, because this is a starter course,…we're going to focus on three of the more popular hooks,…but for more information regarding Angular's hooks,…feel free to visit their website, at Angular.io,…to take a deep dive into their…different component's lifecycles.…Now, the ones that we are going to be covering…during this course is onInit,…which provides the time for us to…do initialization and data retrieval.…
There's also onChanges,…
- Creating components
- Bootstrapping components
- Working with templates
- Using directives and interpolation
- Binding and transforming data
- Creating advanced and nested components
- Creating services
- Obtaining data with HTTP calls
- Configuring routes
Skill Level Intermediate
1. Course Overview
3. Directives, Interpolation, and Templates
5. Advanced Components
7. Obtaining Data with HTTP
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.