Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoothScroll service not working for me #88

Open
robertochingon opened this issue Jan 7, 2018 · 0 comments
Open

smoothScroll service not working for me #88

robertochingon opened this issue Jan 7, 2018 · 0 comments

Comments

@robertochingon
Copy link

robertochingon commented Jan 7, 2018

Hi,

I´m trying to use your service but it´s not working in my code. I tried to read about versions and dependencies but I couldn´t see anything. My angular app is running in angular1.0.7. Which is the minimum Angular version that is working?

My sample code:
HTML:

...
<div id="boats-top" class="span9">
...
<a ng-click="selectPage(page)" class="cursor-pointer">{{page}}</a>
...

JS:

$scope.selectPage = function(page) {            	    		
    		var element = document.getElementById('boats-top');
			smoothScroll(element);
        };

It does nothing. No errors in browser console. Maybe it´s the Angular version.

An another additional issue. Maybe you want to split in a new issue. I´m trying to use the service as workaround, because directive is not working either. I´m trying to use it with Bootstrap 2.3.2 pagination. If you add the directive, then bootstrap pagination doesn´t work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant