title: Vue js mounted scroll to specific div
body: <p>I found this script and works fine when you click on the button. What i want to achieve is when the page load it automatic scrolls to that specific div.</p>
  
  <p>How can i achieve that?</p>
  
  <pre><code>&lt;button id="goto" @click="goto('porto')"&gt;Go to porto&lt;/button&gt;
  
  &lt;div class="page" ref="porto"&gt;
      Porto page
  &lt;/div&gt;
  
  methods: {
      goto(refName) {
          var element = this.$refs[refName];
          console.log(element);
          var top = element.offsetTop;
          window.scrollTo(0, top);
      }
  },
  </code></pre>