Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse variables across views #105

Open
MichaelCurrin opened this issue May 9, 2021 · 0 comments
Open

Reuse variables across views #105

MichaelCurrin opened this issue May 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@MichaelCurrin
Copy link
Owner

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 MichaelCurrin added the enhancement New feature or request label May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant