down votefavorite 
<https://stackoverflow.com/questions/48522589/angular-click-binding-is-not-working-on-dynamic-invoking-click-event-anchor-ta#>

I got a problem with Angular(2+), I have a menu with anchor tag, we 
manually select menu item or through keyboard Enter we select the menu item.

<a (click) = 'selectItem(item)' id='menuItem1'>Menu item</a>

Through Enter, dynamically calling the click event on anchor tag.

$('#menuItem1').click();

Expecting that menu has to select, but not selected. Other than anchor tag, 
on *Enter* menuitem is selected.

Sample Code : https://plnkr.co/edit/lZX86z7xIBdrvI9lNEFO?p=preview

Please help me.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to