/// /// 'use strict'; AIA.controller("AuthenticationController", ["$scope", "$log", "$location", '$window', "$timeout", "AuthenticationService", function ($scope, $log, $location, $window, $timeout, AuthenticationService) { $scope.IsAuthenticated = false; $scope.login = function () { // alert('called controller'); $scope.IsAuthenticated = AuthenticationService.authenticateUser('superadmin', 'education'); if ($scope.IsAuthenticated) { $window.location.href = "/AIA/index.html"; } else { } } }] );