Skip to content

Suggestion: Allow option to filter on routes #15

@sebmor

Description

@sebmor

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,
})

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions