Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue router Async Scrolling

scrollBehavior (to, from, savedPosition) {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve(savedPosition || { x: 0, y: 0 })
    }, 500)
  })
}
 
PREVIOUS NEXT
Tagged: #vue #router #Async #Scrolling
ADD COMMENT
Topic
Name
3+5 =