Hooking up <a /> tags without the navigo-data attribute
schotime opened this issue · 3 comments
schotime commented
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 commented
That's a good suggestion for a new router conifg. I'll implement.
krasimir commented
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 commented
awesome!! thx