How to handle anchor hash linking in AngularJS

后端 未结 27 1152
后悔当初
后悔当初 2020-11-22 12:22

Do any of you know how to nicely handle anchor hash linking in AngularJS?

I have the following markup for a simple FAQ-page



        
27条回答
  •  一个人的身影
    2020-11-22 13:02

    Get your scrolling feature easily. It also supports Animated/Smooth scrolling as an additional feature. Details for Angular Scroll library:

    Github - https://github.com/oblador/angular-scroll

    Bower: bower install --save angular-scroll

    npm : npm install --save angular-scroll

    Minfied version - only 9kb

    Smooth Scrolling (animated scrolling) - yes

    Scroll Spy - yes

    Documentation - excellent

    Demo - http://oblador.github.io/angular-scroll/

    Hope this helps.

提交回复
热议问题