-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
What problem does this feature solve?
Currently there is no way to navigate to a page fragment. I propose an autoscroll feature that can be specified in the router config to navigate to a page anchor.
It would also be good to support XPath references and the ability to automatically assign a class attribute to the target.
What does the proposed API look like?
extend the routes path to allow a octothorpe:
const router = new VueRouter({
routes: [
{ path: '/about#staff', component: MyComponent, name: "About", target_class="page_target"},
sgpinkus
Metadata
Metadata
Assignees
Labels
No labels