From the course: Vue.js 3 Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Lifecycle hooks

Lifecycle hooks

- [Instructor] Sometimes you'll need to take care of things at different points in the life of a view application. And to do that you use lifecycle hooks. Lifecycle hooks allow you to hook onto different events that will happen as a result of the life of your application. Here's a list of all the ones that are available to you and some of these are in blue referring to regular life cycle methods that you can hook into. And there's a couple that you see here that are in purple that are referring to dynamic components which is a little bit more complicated. And the ones in green refer to things that happen in sub-components. Now what you use depends on what you need access to. So although more than one of these methods might work for your needs you need to be mindful of what's available at each level. If you take a look at this graph you can see when the different events take place in what's available to you at different…

Contents