LabExercController.js 699 Bytes
AIA.controller("LabExercController", ["$scope", "$rootScope", "pages", "$log",
function ($scope, $rootScope, pages, log) {

    $scope.$on('$viewContentLoaded', function (event) {
        // code that will be executed ... 
        // every time this view is loaded
        $scope.showme = false;
        $rootScope.currentActiveModuleTitle = pages[8].name;
        $scope.scroll();
    });

   // $scope.showme = false;
    $scope.IsVisible = function () {
       // $scope.scroll();

    }

    $scope.scroll = function () {
        // $window.scrollTo(0, 0);
        $("html,body").scrollTop(0);
        //alert("scroll");
    }
   // $rootScope.currentActiveModuleTitle = pages[8].Name;
}]

);