Commit e062a9fcdbb9753798b3c849b7d6f38b8c32e366
1 parent
d9702b98
reached call to the service...
Showing
2 changed files
with
7 additions
and
9 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/AuthenticationController.js
@@ -8,7 +8,6 @@ AIA.controller("AuthenticationController", ["$scope", "$log", "$location", '$win | @@ -8,7 +8,6 @@ AIA.controller("AuthenticationController", ["$scope", "$log", "$location", '$win | ||
8 | 8 | ||
9 | $scope.login = function () { | 9 | $scope.login = function () { |
10 | 10 | ||
11 | - | ||
12 | // alert('called controller'); | 11 | // alert('called controller'); |
13 | $scope.IsAuthenticated = AuthenticationService.authenticateUser('superadmin', 'education'); | 12 | $scope.IsAuthenticated = AuthenticationService.authenticateUser('superadmin', 'education'); |
14 | if ($scope.IsAuthenticated) { | 13 | if ($scope.IsAuthenticated) { |
400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js
1 | -AIA.service('ModuleService', function () { | ||
2 | -this.SaveOpenedModules = function () { | ||
3 | - return | ||
4 | - { | ||
5 | - true; | ||
6 | -// alert('called service'); | ||
7 | - } | ||
8 | -}; | 1 | +AIA.factory('ModuleService', function () { |
2 | + return { | ||
3 | + SaveOpenedModules: function () { | ||
4 | + console.log('called service'); | ||
5 | + return true; | ||
6 | + } | ||
7 | + }; | ||
9 | }); | 8 | }); |
10 | \ No newline at end of file | 9 | \ No newline at end of file |