Reading the AngularJS docs I haven't figured out if
// call $anchorScroll()
Unfortunately this is not possible using
$anchorScroll. As you discovered
$anchorScroll doesn't have any options and doesn't work with
For the sake of self-learning I put together an example with a smooth scrolling service. There are probably better ways to do this so any feedback is encouraged.
To scroll to an element you attach a
ng-click="gotoElement(ID)" to any element. I think an even better route would be to make this a directive.
Here's the working example on jsFiddle.
There are now a number of third-party directives for accomplishing this.