harness-drone/server/app/scripts/controllers/login.js
2014-07-12 19:01:58 -07:00

13 lines
No EOL
341 B
JavaScript

'use strict';
angular.module('app').controller("LoginController", function($scope, $http, remotes) {
$scope.state=0
$scope.user = remotes.getLogins().success(function (data) {
$scope.remotes = (typeof data==="string")?[]:data;
$scope.state = 1;
})
.error(function (error) {
$scope.remotes = [];
$scope.state = 1;
});
});