M
M
myskypesla2018-07-24 23:39:28
Vue.js
myskypesla, 2018-07-24 23:39:28

Why might computed not work with vuex?

In the file store.js here https://codesandbox.io/s/1yz87rv07l on the 13th line I display console.log, but it is not displayed when you enter something in the input
Can you tell me why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Nagorny, 2018-07-25
@myskypesla

You are in inputthe stands v-model="phone"and the computedother
Just change from phone to cleanPhone
v-model="cleanPhone"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question