title: Vue.js run a code in mounted and again for restart functionality
body: <p>I am creating a game in VueJS, where, when the page loads, I want a method to fire, make an ajax call to an external API and create a bunch of data properties. When the player wins the round, I want to them to be able to see a button that allows them to restart the game. I am using a <code>mounted()</code> hook to fire the method on page load.</p>
  
  <p>My question is I am not sure how to implement the restart functionality if the game setup and API call are within the <code>mounted()</code> function. Is there a way to run the <code>mounted()</code> function again?</p>