I'm trying to combine the scrollTo plugin for Jquery with AngularJS. The reason why I want to do this is that I want to have automated scrolling to a specific section of the website if the corresponding URL will be used. Until now this works, but not perfectly. There is a short flickering if one clicks on a link, just before the animation starts.
I think the problem can be solved by using:
event.preventDefault();
But I don't know how to combine the call of preventDefault function with my AngularJS code ... I'm new to AngularJS so maybe there is a simple solution which I just don't know yet. I tried several solutions which I found on the net but without success.
Here you can find an abstract of the current solution : http://jsfiddle.net/Hcb4b/6/ It's not runnable because I can't include the easing plugin ...
Thanks in advance