Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue router "savedposition" with ajax call

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