Nuxt.js: How to use vue-router's scroll behavior?

Created on 16 Jan 2017  路  3Comments  路  Source: nuxt/nuxt.js

Can't seem to find a way to use vue-router's scroll behavior functionality with nuxt.js, and tips?

Scroll behavior docs: https://router.vuejs.org/en/advanced/scroll-behavior.html

This feature request is available on Nuxt.js community (#c116)

Most helpful comment

Hi @jaredreich

This possibility will be added in the next release via the router.scrollBehavior option in the nuxt.config.js file.

All 3 comments

Hi @jaredreich

This possibility will be added in the next release via the router.scrollBehavior option in the nuxt.config.js file.

You can now customise the scrollBehavior in the latest release 0.9.7.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

bimohxh picture bimohxh  路  3Comments

uptownhr picture uptownhr  路  3Comments

nassimbenkirane picture nassimbenkirane  路  3Comments

surmon-china picture surmon-china  路  3Comments