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

Reactivity issue with nested properties #24

Open
jaredmcateer opened this issue Jul 5, 2022 · 2 comments
Open

Reactivity issue with nested properties #24

jaredmcateer opened this issue Jul 5, 2022 · 2 comments
Labels
open to ideas Something I don't know how to fix but if someone has ideas I'm game to explore options

Comments

@jaredmcateer
Copy link
Owner

If you pass a complex object as a prop from angular to vue updates to the objects properties in Angular are not reflected in Vue, but if you change the property in vue the change will be reflected in both.

@jaredmcateer
Copy link
Owner Author

Minimal reproduction: copy the contents of this folder and overwrite one of the examples in the demo folder (or setup an additional entry in vite.config.ts).

complex-object.zip

@jaredmcateer
Copy link
Owner Author

I found a workaround where you wrap the object on the angular side with reactive however I'm not entirely convinced that is the best solution

@jaredmcateer jaredmcateer added the open to ideas Something I don't know how to fix but if someone has ideas I'm game to explore options label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open to ideas Something I don't know how to fix but if someone has ideas I'm game to explore options
Projects
None yet
Development

No branches or pull requests

1 participant