way how link was handled caused exceptions when not using html5 mode, better to use ng-click=scrollToAnchor(anchor)