Answers for "rerender a vue component"

0

rerender a vue component

<template>
    <component-to-re-render :key="componentKey" />
</template>

export default {
  data() {
    return {
      componentKey: 0
    }
  },
  methods: {
    forceRerender() {
      this.componentKey += 1
    }
  }
}
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language