AIA.controller("SymptNavController", ["$scope", "$rootScope", "Modules", "$log", function ($scope, $rootScope, Modules, log) { $rootScope.currentActiveModuleTitle = Modules[15].Name; $scope.myObj = { "width": "100%", "min-height": "1000px" } $scope.showme = false; $scope.IsVisible = function () { $scope.scroll(); } $scope.scroll = function () { // $window.scrollTo(0, 0); $("html,body").scrollTop(0); //alert("scroll"); } }] );