Answers for "scroll to top router link vue"

0

scroll to top router link vue

export default new Router({
  scrollBehavior() {
    return { x: 0, y: 0 };
  },
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }
  ],
  mode: 'history'
});
Posted by: Guest on November-16-2020
0

scroll to top router link vue

scrollBehavior(to, from, savedPosition) {  return { x: 0, y: 0 };}
Posted by: Guest on November-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language