Go to top Button issue


#1

I have used -

$scope.scrollTo = function(id) {
                $location.hash(id);
                $ionicScrollDelegate.anchorScroll();
            };

This one works but it reloads the page.
In HTML I have used anchor tag without href attr. and with ng-click=“scrollTo(‘top’)”.

Any improvement to stop reloading page?