From e062a9fcdbb9753798b3c849b7d6f38b8c32e366 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Fri, 4 Nov 2016 11:03:42 +0530 Subject: [PATCH] reached call to the service... --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/AuthenticationController.js | 1 - 400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js | 15 +++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AuthenticationController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AuthenticationController.js index b72e681..aee2947 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AuthenticationController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AuthenticationController.js @@ -8,7 +8,6 @@ AIA.controller("AuthenticationController", ["$scope", "$log", "$location", '$win $scope.login = function () { - // alert('called controller'); $scope.IsAuthenticated = AuthenticationService.authenticateUser('superadmin', 'education'); if ($scope.IsAuthenticated) { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js b/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js index 57a5e45..5f61e7b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js @@ -1,9 +1,8 @@ -AIA.service('ModuleService', function () { -this.SaveOpenedModules = function () { - return - { - true; -// alert('called service'); - } -}; +AIA.factory('ModuleService', function () { + return { + SaveOpenedModules: function () { + console.log('called service'); + return true; + } + }; }); \ No newline at end of file -- libgit2 0.21.4