Click.trigger/click.delegate in <a> tab

Hi ,
I am facing problem while using click.delegate/click.trigger in anchor tag ,the function is not getting called.

My page is not completely reload with anchor href value. It is reloading only the part containing the page but I need to reload the page with anchor href value.

Please suggest.

1 Like

Could you share a reproducible example of what you are trying to accomplish?

You can use CodeSandbox for the example:


1 Like

You could try something like

< a route.href="myRoute" click.delegate = "dosomething() & debounce:200"></a>

The & debounce should pick up the click event

1 Like

Hi All,
I am able to make a call through click.trigger in anchor tag.

I retrun true from the called function and it worked for me.

Thanks,
Chandra

2 Likes