difficulties with the new Vue pattern #1612
Answered
by
sagalbot
airtonctj
asked this question in
Help Wanted
-
hello, I'm new to vue and I'm facing some difficulties with the script's new default. using this code:
select does not update =( but if I use this format:
works correctly =) Why does it happen? |
Beta Was this translation helpful? Give feedback.
Answered by
sagalbot
Mar 16, 2022
Replies: 1 comment 1 reply
-
You'll need to register that Try changing |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
airtonctj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need to register that
ref()
within the setup function itself. Right now it's being registered within the callback, which won't be called duringsetup
, so theref
will not be registered.Try changing
let teste = []
tolet teste = ref([])
, and then in your callback, doteste = Object.keys(resp.data);