J
J
jazzus2019-03-04 05:47:46
Vue.js
jazzus, 2019-03-04 05:47:46

How to sync boolean c back in vue?

A field in a table is of boolean type. Value 0.
Form in Vue - dropdown - value false
And they are not synchronized. I need to display field data where value is false, but he does not want to set it automatically, because false is waiting there, and I get 0. Is there a way to set false or only 0/1?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lavezzi1, 2019-03-04
@jazzus

You can also convert 0/1 to false/true:

Boolean(0) // false
Boolean(1) // true

M
Maxim Timofeev, 2019-03-04
@webinar

there waiting for false

how is it implemented?
??
Then you can remove the strict equality and 0 will also work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question