Skip to content

Instantly share code, notes, and snippets.

@Bachana123
Created December 6, 2019 07:40
Show Gist options
  • Save Bachana123/b45cd7eae3b39580439ede4e5d586c4b to your computer and use it in GitHub Desktop.
Save Bachana123/b45cd7eae3b39580439ede4e5d586c4b to your computer and use it in GitHub Desktop.
forcing scroll
/*
** Forcing the scroll position to the top for every routes:
*/
// router: {
// scrollBehavior: function (to, from, savedPosition) {
// console.log(to);
// return { x: 0, y: 0 }
// }
// },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment