We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The elements do get the active class when they are in view, but the href of the url is not updated. Would it be possible to add this as an option?
active
The text was updated successfully, but these errors were encountered:
@mebibou thanks for feedback, that would be a nice feature. Will try to take a look at it when I get a chance.
Sorry, something went wrong.
FYI to activate this behaviour I am currently using
<sn-scroll-spy-section for="scrollNav" id="a" snInViewport inViewportChange)="inViewport($event, 'a')"></sn-scroll-spy-section> <sn-scroll-spy-section for="scrollNav" id="b" snInViewport inViewportChange)="inViewport($event, 'b')"></sn-scroll-spy-section>
class Component { constructor(private location: Location) {} inViewport(inViewport, id) { if (inViewport) { this.location.go(`#${id}`); } } }
I also configured my RouterModule to useHash: false, not sure if it would work otherwise
RouterModule
useHash: false
No branches or pull requests
The elements do get the
active
class when they are in view, but the href of the url is not updated. Would it be possible to add this as an option?The text was updated successfully, but these errors were encountered: