On September 24, 2020 . By CodimTh Category: Web Vue.js Example How to scroll to top of page in Vuejs. Just create a method like this: methods: { scrollToTop() { window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }); } } Tags : Vue.js Vue.js Tutoriels Tips Vue.js Previous PostHow to inject translator service in my service in Drupal 8Next PostHow to create a Modal Component with Vue.js Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments