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

Hooking up <a /> tags without the navigo-data attribute #280

Closed
schotime opened this issue Mar 11, 2021 · 3 comments
Closed

Hooking up <a /> tags without the navigo-data attribute #280

schotime opened this issue Mar 11, 2021 · 3 comments

Comments

@schotime
Copy link

Is there away to do this automagically as a convention or just do all <a /> tags that use relative urls because I'd rather not have to specify this everywhere?

@krasimir
Copy link
Owner

That's a good suggestion for a new router conifg. I'll implement.

krasimir pushed a commit that referenced this issue Mar 16, 2021
@krasimir
Copy link
Owner

Hey @schotime,

There is a new 8.10.0 version. You can now use:

const router = new Navigo("/", { linksSelector: "a" });

which will basically select all the links on the page. No matter if they have data-navigo attribute or not.

@schotime
Copy link
Author

awesome!! thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants