0.12.12
Improvements
-
v-model
on checkbox can now bind the model value to expressions instead of justtrue
orfalse
. Example:<input type="checkbox" v-model="example" true-exp="a" false-exp="b">
// when checked: vm.example === vm.a // when unchecked: vm.example === vm.b
-
v-model
on radio also gets the same feature:<input type="radio" v-model="example" exp="a">
// when checked: vm.example === vm.a
Fixed
v-model
on checkbox should now update the input checked state based on truthy-ness again. In 0.12.11 it is only checked when value strictly equalstrue
.