Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vue.js 3 for Beginners

You're reading from   Vue.js 3 for Beginners Learn the essentials of Vue.js 3 and its ecosystem to build modern web applications

Arrow left icon
Product type Book
Published in Sep 2024
Publisher Packt
ISBN-13 9781805126775
Pages pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Simone Cuomo Simone Cuomo
Author Profile Icon Simone Cuomo
Simone Cuomo
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Getting Started with Vue.js FREE CHAPTER
2. Chapter 1: Exploring the Book’s Layout and Companion App 3. Chapter 2: The Foundation of Vue.js 4. Part 2: Understanding the Core Features of Vue.js
5. Chapter 3: Making Our HTML Dynamic 6. Chapter 4: Utilizing Vue’s Built-In Directives for Effortless Development 7. Chapter 5: Leveraging Computed Properties and Methods in Vue.js 8. Chapter 6: Event and Data Handling in Vue.js 9. Chapter 7: Handling API Data and Managing Async Components with Vue.js 10. Part 3: Expanding Your Knowledge with Vue.js and Its Core Libraries
11. Chapter 8: Testing Your App with Vitest and Cypress 12. Chapter 9: Introduction to Advanced Vue.js Techniques – Slots, Lifecycle, and Template Refs 13. Chapter 10: Handling Routing with Vue Router 14. Chapter 11: Managing Your Application’s State with Pinia 15. Chapter 12: Achieving Client-Side Validation with VeeValidate 16. Part 4: Conclusion and Further Resources
17. Chapter 13: Unveiling Application Issues with the Vue Devtools 18. Chapter 14: Advanced Resources for Future Reading 19. Index 20. Other Books You May Enjoy

Understanding the Vue.js lifecycle and hooks

As we progress into the book, our knowledge of Vue.js continues to expand. In this section, we are going to discuss the Vue.js lifecycle.

When we use Vue.js, the application goes through a defined list of steps, from creating the component HTML to gathering all the dynamic values, as well as displaying these values in the DOM. Each of these is part of what we call the lifecycle, and in this section, we are going to define them all and learn when and how to use them during the course of our development careers.

If you have ever tried to learn Vue.js in the past, you have probably already been exposed to the following diagram, which is available in the main Vue.js documentation:

Figure 2.3: Vue.js lifecycle diagram (from www.vuejs.org)

Figure 2.3: Vue.js lifecycle diagram (from www.vuejs.org)

No matter how long you have been using Vue.js, the preceding diagram will repeatedly appear in your browser history, and it will slowly be imprinted in your memory, as it...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime