AIA.controller("AnatTestController", ["$scope", "$rootScope", "pages", "$log", function ($scope, $rootScope, pages, log) { $scope.showme = false; $scope.IsVisible = function () { $scope.scroll(); } $scope.scroll = function () { // $window.scrollTo(0, 0); $("html,body").scrollTop(0); //alert("scroll"); } $rootScope.currentActiveModuleTitle = pages[7].name; }] );