Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Allow option to filter on routes #15

Open
sebmor opened this issue Aug 17, 2018 · 2 comments
Open

Suggestion: Allow option to filter on routes #15

sebmor opened this issue Aug 17, 2018 · 2 comments
Assignees
Labels

Comments

@sebmor
Copy link

sebmor commented Aug 17, 2018

There is already an option to ignore routes, but in the many cases where you only have one or a few pages that need the persist their scroll, it's often easier to only select these instead of ignoring all the rest.

I suggest a filter kind of option:

Vue.use(vueScrollBehavior, {
  filter: [/\/boo/, /\/zoo/],    // only apply on these routes,
})
@jeneser
Copy link
Owner

jeneser commented Aug 21, 2018

Right, we just need a filter option to match our routes.
I marked it as a new feature for PR.

@ghost
Copy link

ghost commented Apr 15, 2020

must have

@jeneser jeneser self-assigned this May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants