angularjs - Angular bootstrap dropdown toggle - navigate through keyboard arrow key -


i using bootstrap's dropdown toggle directive. navigate menus thru mouse not thru keyboard arrow key. please let me know how navigate thru keyboard up/down arrow keys.

see plunker: http://plnkr.co/edit/m5tblkvmvjhvf69v2635?p=preview

for bootstrap dropdowns, up/down arrows rely on being able "focus" anchors, requires href attribute specified.

<ul class="dropdown-menu">   <li ng-repeat="choice in items">     <a href="javascript:void(0)">{{choice}}</a>   </li> </ul> 

note use of href="javascript:void(0)" instead of usual href="#", because latter cause angularjs reload page due route changing.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -