How to use the @material/switch.MDCSwitch.attachTo function in @material/switch

To help you get started, we’ve selected a few @material/switch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matsp / material-components-vue / components / switch / Switch.vue View on Github external
mounted () {
    this.mdcSwitch = MDCSwitch.attachTo(this.$el)
    this.mdcSwitch.checked = this.checked
    this.mdcSwitch.disabled = this.disabled
  },
  beforeDestroy () {