AuthenticationController.js
800 Bytes
'use strict';
//Initialize the PlayerController
//AIA.controller("AuthenticationController",["$scope", "$log", "$location", "$timeout",
// function ($scope, $log, $location, $timeout) {
// }]
//);
AIA.controller("AuthenticationController",
function ($scope, AutheticationService) {
$scope.Login = function () {
alert('called controller');
$scope.IsAuthenticated = AutheticationService.AuthenticateUser('superadmin', 'education');
}
}
);
var btnId = document.getElementById("btnlogin");
btnId.addEventListener("click", function (e) {
var scope = angular.element(document.getElementById("loginDiv")).scope();
scope.$apply(function () {
scope.Login();
})
});