Chrome Extension

How to reload/refresh a webpage

How to reload/refresh a webpage in Vue.js
<template>
  <button @click="reloadPage">Reload</button>
</template>


<script>
export default {
  ...
  methods: {
    reloadPage() {
      this.$router.go();
    }
  }
}
</script>
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

Search Index Data (The code snippet can also be found with below search text)

How to reload/refresh a webpage in Vue.js
Was this helpful?
0 Comments
Join Devsheet Ask a Question