Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Real-World Web Applications with Vue.js 3

You're reading from  Building Real-World Web Applications with Vue.js 3

Product type Book
Published in Jan 2024
Publisher Packt
ISBN-13 9781837630394
Pages 318 pages
Edition 1st Edition
Languages
Author (1):
Joran Quinten Joran Quinten
Profile icon Joran Quinten

Table of Contents (17) Chapters

Preface Part 1: Getting Started with Vue.js Development
Chapter 1: Introduction to Vue.js Chapter 2: Creating a Todo List App Chapter 3: Building a Local Weather App Chapter 4: Creating the Marvel Explorer App Part 2: Intermediate Projects
Chapter 5: Building a Recipe App with Vuetify Chapter 6: Creating a Fitness Tracker with Data Visualization Chapter 7: Building a Multiplatform Expense Tracker Using Quasar Part 3: Advanced Applications
Chapter 8: Building an Interactive Quiz App Chapter 9: Experimental Object Recognition with TensorFlow Part 4: Wrapping Up
Chapter 10: Creating a Portfolio with Nuxt.js and Storyblok Index Other Books You May Enjoy

App state

To make it easier for us to control the state of the app, we’ll add a new store to track the current state of the user interface.

Vuetify has created a placeholder app store for us in the store/app.ts file, so we’ll add some features to handle page transitions (lines 28, 30-35), toggling a menu (lines 18, 20-26) and controlling a dialog (lines 37-55) for app-level notifications: https://github.com/PacktPublishing/Building-Real-world-Web-Applications-with-Vue.js-3/blob/main/06.fitness/.notes/6.6-app.ts.

Having access to these kinds of user interface utilities in a centralized place eliminates the need to repeat certain patterns in our app, such as showing or hiding a dialog. It means that those utilities are part of the app and are therefore available throughout the whole app.

Centralized dialog

Let’s update the FormLogin.vue file to make use of the store options on the app level. We can clean up the existing dialog options and replace them...

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 €14.99/month. Cancel anytime}