title: Vue Router - call function after route has loaded
body: <p>I'm working on a project where I need to call a function AFTER the route has finished loading.  However, when using the 'watch' functionality, it only loads on route change, but does so before route has finished loading.  So when I attempt to run a script that targets DOM elements on the page, those elements don't exist yet.  Is there any functionality in Vue Router that would allow me to wait until everything is rendered before running the script?</p>
  
  <pre><code>const app = new Vue({
      el: '#app',
      router,
      watch: {
          '$route': function (from, to) {
              function SOMEFUNCTION()
           }   
      },
      data: {
          some data
      },
      template: `
        &lt;router-view/&gt;
    `
  })
  </code></pre>