Answers for "vuejs rerender"

3

Vue.js force to reload re-render

this.$forceUpdate();
Posted by: Guest on July-03-2020
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

Code answers related to "Javascript"

Browse Popular Code Answers by Language