angularjs - $anchorScroll to class -
in web application, allow user utilize arrow keys go , downwards big list set using ng-repeat:
<li ng-repeat="vpn in vpns | orderby: 'title' | customfilter:searchstring" ng-class="{'highlight': $index == focusindex }"> the current <li> gets class highlight. i'd scroll page current selection, each <li> large, , page can show 3 @ time. know can utilize $location , $anchorscroll scroll id via documentation can't figure out how scroll class, or utilize sort of ng-id similar ng-class (only 1 element highlighted @ time).
if offer me few pointers great. thankyou!
angularjs ng-class anchor-scroll
No comments:
Post a Comment