As of Nuxt.js release 1.4.2, the default scroll behavior does not work as expected when using element ID's as hash links in routes (example: about-...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Thanks @dimer191996 , this was very useful!! πͺ
There are some issues with this article ... π€
First: I found same article posted on 2018.09.04 by @ZachCardoza and here is the url for it zachcardoza.com/post/nuxtjs-smooth...
Second: it is for old version of NuxtJS current Nuxt version is 2.15.3
Third: router.scrollBehavior property is deprecated in favor of using ~/app/router.scrollBehavior.js file, learn more: nuxtjs.org/api/configuration-route...
Try to write your own articles or at lease give credits to the original authors,,,,
Hey, great work on this article. I'm working on a Nuxt project atm and this will be super useful!
wow you can't image how awesome I feel when you say that. Send me your GitHub so i can take a look at your project. :)
I'm glad it was appreciated! It's a work project so unfortunately we don't have a public repo for obvious reasons. I'll see if I can find a personal project to use it on some time though!
tnx bro it's super usefull β€οΈ
happy coding
Wow, Thanks
I got this error when there is the anchor in url path, you know why?
Uncaught (in promise) Error: [vue-router] TypeError: Cannot read properties of undefined (reading 'behavior')
You are f"#$"n smart! This was killing me for hours. Can't believe they still haven't internally fix this issue. Specially with static pages and hash navigation, this is a nuisance.
Thx man
Same here!, I don't really know what they're waiting for . Thanks To you man for reading it !
Thank you! You've really helped me out π
thank you very much
dev.to/bayyash/comment/1d09d
thanks man)