badge-generator
badge-generator copied to clipboard
Reuse variables across views
Passing values up from a child is easy.
The hard part is making it a two-way bind, so that a value is set in App and passed through the router to other views. And then the value like repoName can be set on different views and will be persisted on page changes.
The Vue 2 syntax also doesn't allow two variables, so then an object has to be used for username and repoName to both go through v-model
I am also not sure on using v-on and v-model and events and the ways to do it across Vue 2 and Vue 3. So leave it for now.