{"action":"created","issue":{"url":"https://api.github.com/repos/oblador/angular-scroll/issues/130","labels_url":"https://api.github.com/repos/oblador/angular-scroll/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/oblador/angular-scroll/issues/130/comments","events_url":"https://api.github.com/repos/oblador/angular-scroll/issues/130/events","html_url":"https://github.com/oblador/angular-scroll/issues/130","id":92800407,"number":130,"title":"duScrollspy not working and other strange behaviour","user":{"login":"envision","id":1790545,"avatar_url":"https://avatars.githubusercontent.com/u/1790545?v=3","gravatar_id":"","url":"https://api.github.com/users/envision","html_url":"https://github.com/envision","followers_url":"https://api.github.com/users/envision/followers","following_url":"https://api.github.com/users/envision/following{/other_user}","gists_url":"https://api.github.com/users/envision/gists{/gist_id}","starred_url":"https://api.github.com/users/envision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envision/subscriptions","organizations_url":"https://api.github.com/users/envision/orgs","repos_url":"https://api.github.com/users/envision/repos","events_url":"https://api.github.com/users/envision/events{/privacy}","received_events_url":"https://api.github.com/users/envision/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T06:02:39Z","updated_at":"2015-07-03T06:29:31Z","closed_at":null,"body":"Hi,\r\n\r\nWhen I added this to my navigation controller to be run before view change:\r\n\r\n    $document.scrollTop(top, duration).then(function() {\r\n      console && console.log('You just scrolled to the top!');\r\n    });\r\n\r\nI get console errors:\r\n\r\n\tError: $document.scrollTop(...).then is not a function\r\n\t$scope.selectView@https://myapp.loc/pkg/myapp/js/controllers.js:604:3\r\n\t$parseFunctionCall@https://myapp.loc/pkg/angular/js/angular13.js:12133:15\r\n\tngEventHandler/</callback@https://myapp.loc/pkg/angular/js/angular13.js:22518:17\r\n\t$RootScopeProvider/this.$get</Scope.prototype.$eval@https://myapp.loc/pkg/angular/js/angular13.js:14123:16\r\n\t$RootScopeProvider/this.$get</Scope.prototype.$apply@https://myapp.loc/pkg/angular/js/angular13.js:14221:18\r\n\tngEventHandler/<@https://myapp.loc/pkg/angular/js/angular13.js:22523:17\r\n\tx.event.dispatch@https://myapp.loc/pkg/jquery/js/jquery.js:5:9453\r\n\tx.event.add/y.handle@https://myapp.loc/pkg/jquery/js/jquery.js:5:6271\r\n\r\nFor some reason \"du-scrollspy\" is not working at all, no errors in console. I have tried in on several different elements, only one at a time and no other directives or functionalities of this library in use. I encountered the above mentioned error when trying other functionality to ensure the library has been properly loaded as it was failing silently."},"comment":{"url":"https://api.github.com/repos/oblador/angular-scroll/issues/comments/118250061","html_url":"https://github.com/oblador/angular-scroll/issues/130#issuecomment-118250061","issue_url":"https://api.github.com/repos/oblador/angular-scroll/issues/130","id":118250061,"user":{"login":"envision","id":1790545,"avatar_url":"https://avatars.githubusercontent.com/u/1790545?v=3","gravatar_id":"","url":"https://api.github.com/users/envision","html_url":"https://github.com/envision","followers_url":"https://api.github.com/users/envision/followers","following_url":"https://api.github.com/users/envision/following{/other_user}","gists_url":"https://api.github.com/users/envision/gists{/gist_id}","starred_url":"https://api.github.com/users/envision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envision/subscriptions","organizations_url":"https://api.github.com/users/envision/orgs","repos_url":"https://api.github.com/users/envision/repos","events_url":"https://api.github.com/users/envision/events{/privacy}","received_events_url":"https://api.github.com/users/envision/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T06:29:31Z","updated_at":"2015-07-03T06:29:31Z","body":"Aha, chinging scrollTop to duScrollTo solved the first issue as mentioned in the doc. But the main problem is open that why du-scrollspy is not doing anything."}}