Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue.js Master Class 2024 Edition

Use the Vue Watch API to Update Pinia Store with the Project Name thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Use the Vue Watch API to Update Pinia Store with the Project Name

Every page should have a title, and when it was just a static title, that was easy. But for our individual project pages, the title needs to be dynamic, based on the project name we get from the database. To handle that, we’ll take advantage of Vue's reactivity system and use the watch API to keep an eye on the project data and update the Pinia store with the correct project name. This way, the title always matches the current project, no matter what!

Links