Chuazz Posted on Dec 31, 2023 How to update array element in Vue3 Composition API #vue I have trouble while update a specific element in a array, this is my code then i get a message like this: "Invalid left-hand side in assignment expression". Top comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Jon Randy ποΈ Jon Randy ποΈ Jon Randy ποΈ Follow π€ Artisanal developer - coding with varying degrees of success since 1983 Location Bangkok πΉπ Joined Jun 1, 2018 • Dec 31 '23 Dropdown menu Copy link Hide You are trying to assign values to values, you can't do that. This is a JS mistake - nothing to do with Vue. Replace ?. with . Collapse Expand Chuazz Chuazz Chuazz Follow Mobile Developer Joined Dec 31, 2023 • Dec 31 '23 Dropdown menu Copy link Hide thank you so muchπ Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
You are trying to assign values to values, you can't do that. This is a JS mistake - nothing to do with Vue.
Replace
?.
with.
thank you so muchπ