krasimir/navigo

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

schotime opened this issue · 3 comments

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?

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

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.

awesome!! thx