Topic: Form switch widget v-model is not working
weichengcing free asked 3 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
Opened
Specification of the issue
- ForumUser: 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
Tags
Mikołaj Smoleński staff commented 3 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