Good afternoon!
It is necessary to make navigation on the long text within one page. Having marked some elements like id = ‘id1’, …, id = ‘idn’.
Next, in different places of the page, place links to these id (# id1 and so on)
In vue-router you can simulate the “scroll to anchor” behavior:
scrollBehavior (to, from, savedPosition) {
if (to.hash) {
return {
selector: to.hash
//, offset: {x: 0, y: 10}
}
}
}
See: https://router.vuejs.org/en/advanced/scroll-behavior.html
Is it possible to do something similar with the help of framework7 router?