on href click, change url location
2peter3 opened this issue · comments
2peter3 commented
Hey,
is it possible to change the url location on click?
Thanks
Christian Taylor commented
Sure you can do that without using this plugin:
<a x-data="{ url: '/the/original/link' }" x-ajax="content" :href="url" @click="url = '/a/different/link'">Link</a>
<div id="content"></div>