Do: var isTrueSet = (myValue === 'true');. using the identity operator ( === ), which doesn't make any implicit type conversions when the compared variables ... ... <看更多>
For making this possible you have to link a boolean value in v-model . ... You can pass as a value a string by giving it as a value of the property vs-value ... ... <看更多>