1 2 3 4 5 6 7 8 9 10 11 12
angular.module('ConnectCtrl', []).controller('ConnectController', ['$scope', 'SessionService', 'EncryptService', function ($scope, SessionService, EncryptService) { EncryptService.preload(function () { return undefined; }); $scope.connect = { connect: function () { SessionService.connect($scope.connect.login, $scope.connect.pass); } }; } ]);