Created
August 20, 2014 01:15
-
-
Save gerzhan/85872a2acf4e42a18f07 to your computer and use it in GitHub Desktop.
AutoScrool by event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.run(['$rootScope',function($rootScope) { | |
$rootScope.$on('$viewContentLoaded', function(e) { | |
jQuery('html, body').animate({scrollTop: 0}, 200); | |
}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment