badge-generator icon indicating copy to clipboard operation
badge-generator copied to clipboard

Reuse variables across views

Open MichaelCurrin opened this issue 4 years ago • 0 comments

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.

MichaelCurrin avatar May 09 '21 18:05 MichaelCurrin