Lines Matching full:scope
13 '$scope',
18 function($scope, $window, dataService, userModel, $location) { argument
19 $scope.dataService = dataService;
20 $scope.serverUnreachable = false;
21 $scope.invalidCredentials = false;
22 $scope.host = $scope.dataService.host.replace(/^https?\:\/\//ig, '');
24 $scope.tryLogin = function(host, username, password, event) {
28 $scope.login(host, username, password);
31 $scope.login = function(host, username, password) {
32 $scope.serverUnreachable = false;
33 $scope.invalidCredentials = false;
38 $scope.dataService.setHost(host);
41 $scope.$emit('user-logged-in', {});
52 $scope.invalidCredentials = true;
54 $scope.serverUnreachable = true;