angularjs - Need example of how to use angular-scroll -
angularjs - Need example of how to use angular-scroll -
i'm trying figure out how utilize angular-scroll source on github:
https://github.com/durated/angular-scroll
i'm still new angularjs , think i'm having problem reading in between lines on example. i've correctly downloaded angular-scroll using bower, have set in index.html, , have injected dependency. i'm unsure how utilize it. if had jsfiddle quickly. want scroll element using id. i'm using $anchorscroll , it's working want smoother.
any help/examples appreciated!
providing have followed steps described above case of attaching directive element:
<a href="#title" du-smooth-scroll>scroll top</a>
by default smooth scroll element corresponding id:
<h1 id="title">i scroll target</h1>
source code: https://github.com/oblador/angular-scroll/blob/master/example/index.html
demo: http://oblador.github.io/angular-scroll/
angularjs scroll jsfiddle duration
Comments
Post a Comment