<div ng-click='scrollTo("info")'>go to info</div>
// some controller
['$scope', $anchorScroll, function($scope, $anchorScroll) {
$scope.scrollTo = function(id) {
$location.hash(id);
$anchorScroll();
}
}];
$rootScope.$on('$routeChangeSuccess', function(newRoute, oldRoute) {
if($location.hash()) $anchorScroll();
});
(function(){
// some code here
})();
<div class="item" data-value="800"></div>
<div class="item" data-value="801"></div>
<div class="item800"></div>
<div class="item801"></div>
$(".item").each(function(){
var num = this.dataset.value;
$('.item'+num).hide();
});