-
Is having some of the configuration in template tags significant? Likewise, could all of the configuration accomplished by HTML attributes be accomplished in javascript? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Which configuration exactly? The only configs that are in template tags are: There are some configuration you can set with javascript indeed and they're mentioned in the [README].(https://github.com/rehhouari/alpine-router#settings) If you're asking for the reason why the route config (x-route, xhandler) are on the template tags and not done using javascript like: This is a router specifically for those using Alpine.js and like its syntax, which don't involve javascript and make use of template tags and attributes :) And last, no, not all configs accomplished by HTML attributes can be configured by Javascript, yet. I'll consider allowing that, the syntax would be like: window.AlpineRouterConfig = {interceptLinks: false, ....} |
Beta Was this translation helpful? Give feedback.
-
Added Javascript settings! |
Beta Was this translation helpful? Give feedback.
Added Javascript settings!
Removed some HTML attribute settings with these; not the ones in templates tho.