Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var authApp = angular.module('AuthApp', ['ui.bootstrap']);
- authApp.controller('AuthController',
- ['$scope', '$uibModal',
- function ($scope, $uibModal) {
- //$scope.credentials = {
- // userName: "",
- // uPassword: "",
- // rememberMe: ""
- //};
- $scope.OpenLoginModal = function (templateUrl) {
- var modalInstance = $uibModal.open({
- animation: false,
- backdrop: 'static',
- templateUrl: templateUrl,
- controller: 'loginModalController'//,
- //resolve: {
- // credentials: function () {
- // return $scope.credentials;
- // }
- //}
- });
- };
- }]);
- authApp.controller('loginModalController',
- ['$scope', '$modalInstance', 'AuthService',
- function ($scope, $modalInstance, AuthService) {
- //$scope.credentials = credentials;
- //$scope.headerTitle = 'Login Information';
- $scope.LoginUser = function () {
- //var data = {};
- //console.log($scope.credentials);
- AuthService.ValidateServerAccessDetails(data).then(function (response) {
- //$modalInstance.close(response.data);
- }, function (response) {
- //$scope.userName = "";
- //$scope.passWord = "";
- });
- };
- $scope.CancelLogin = function () {
- $modalInstance.dismiss('cancel');
- };
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement