Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

@ModelSync should not be readonly (?) #400

Open
svego opened this issue Sep 8, 2021 · 0 comments
Open

@ModelSync should not be readonly (?) #400

svego opened this issue Sep 8, 2021 · 0 comments

Comments

@svego
Copy link

svego commented Sep 8, 2021

The documentation shows @ModelSync to be applied to a readonly property. However this property will be converted to a computed property with a get and set.

When the property is readonly, you also can't edit the value in the component, so the emit event will never be called. Should the property not be readonly and is this a bug in the docs? Or don't i understand how ModelSync works?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant