Topic: Form switch widget v-model is not working
weichengcing asked 4 years ago
mycode
<template>
<div>
<mdb-switch v-model="switch_data">
{{switch_data}}
</div>
</template>
<script>
import mdbSwitch from "mdbvue";
export default {
components: {
mdbSwitch
},
data() {
return {switch_data:true}
}
</script>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 6.0.0
- Device: pc
- Browser: chrome
- OS: windows 10
- Provided sample code: No
- Provided link: No
Mikołaj Smoleński staff commented 4 years ago
Here are some examples with the same code template and I can't recreate the issue: https://vue.mdbootstrap.com/#/forms/pro/switch.
Do You have any errors in Your console (F12)?
Best regards