Skip to content

Hope helps with#326

Open
EAzari wants to merge 1 commit into
krasimir:masterfrom
EAzari:patch-2
Open

Hope helps with#326
EAzari wants to merge 1 commit into
krasimir:masterfrom
EAzari:patch-2

Conversation

@EAzari

@EAzari EAzari commented Mar 29, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@krasimir

Copy link
Copy Markdown
Owner

Hey, thank you for the PR but can you provide some more description what exactly you are changing and why.

@EAzari

EAzari commented Mar 30, 2023

Copy link
Copy Markdown
Contributor Author

I changed getCurrentEnvURL to getCurrentURLPath and applied that change in all codebase

@MrOtek598

MrOtek598 commented Jun 24, 2023

Copy link
Copy Markdown

Hi,

Thanks for your work, I love Navigo ! I use it in many projects.

I know this is'nt the place for asking you this, but sorry I don't know where else I can reach to you.
I can't find in the documentation how I can get the clicked element with Navigo. Is there a way ? It certainly has to be, sorry I don't have your skills to understand everything you did.

For now, when I want to have the clicked element I used to do this :

function getClicked(element){
   console.log(element)
}
<a href="/" data-navigo onclick="getClicked(this)">Hey!</a>

But it's too heavy because every link has to have this function.

I'm looking for something like this :

const router = new Navigo("/")
router.on("/", (match, event) => {
    console.log(event.target)
})

Can you please help me ?

Thanks

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

Successfully merging this pull request may close these issues.

3 participants