How to use the @material/tab-indicator.MDCTabIndicator.attachTo function in @material/tab-indicator

To help you get started, we’ve selected a few @material/tab-indicator 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 / tabs / TabIndicator.vue View on Github external
mounted () {
    if (!(this.getIndicator instanceof Function)) { // standalone
      this.mdcTabIndicator = MDCTabIndicator.attachTo(this.$el)
    }
    // todo: get instance from parent  when mounted
  },
  beforeDestroy () {