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

gary149 picture gary149  路  3Comments

vadimsg picture vadimsg  路  3Comments

danieloprado picture danieloprado  路  3Comments

msudgh picture msudgh  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments