You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess that when nested objects are combined with x-model, that there is not a new copy of the whole object but only the property assigned to x-model. Therefore $watch does not see any changes.
This discussion was converted from issue #1303 on June 11, 2021 16:26.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I guess that when nested objects are combined with
x-model, that there is not a new copy of the whole object but only the property assigned tox-model. Therefore $watch does not see any changes.Sandbox for demo: https://codesandbox.io/s/kind-water-du145?file=/index.html
If this is intended, how can I watch an object for changes with X number of properties?
Beta Was this translation helpful? Give feedback.
All reactions