# Scroll to anchor doesn't work

**URL:** <https://forum.ionicframework.com/t/scroll-to-anchor-doesnt-work/27676>\
**Category:** ionic-v1\
**Created:** [July 4, 2015, 1:58pm UTC](https://forum.ionicframework.com/t/scroll-to-anchor-doesnt-work/27676 "2015-07-04T13:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laire](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@Laire](https://forum.ionicframework.com/u/Laire)\
**Post date:** [July 4, 2015, 1:58pm UTC](https://forum.ionicframework.com/t/scroll-to-anchor-doesnt-work/27676/1 "2015-07-04T13:58:06Z")

</div>

Hello,

I try to implement a link with a scrolling to anchor function. But when i click the link, the app scrolls to the top of the page and not to the anchor.

The link:

```
<a ng-click="slideTo('ass')">siehe weiter unten</a>

```

The anchor:

```
<div class="row">
	<div class="col col-100 gridDivider" id="#ass">
	    Fortsetzung ASS
	</div>
</div>

```

JS:

```
.controller('AlgoCtrl', function($scope, $location, $ionicScrollDelegate) {
	$scope.slideTo = function(location){
		location = $location.hash(location);
    	$ionicScrollDelegate.anchorScroll("#"+location);
	};	 	

});
```
