BAEL - 1916 (#4705)

* BAEL - 1916

* BAEL - 1916

Added JUnit tests

* BAEL-1916

Renamed the project

* Renamed the project
This commit is contained in:
Tino Mulanchira Thomas
2018-07-13 23:14:12 +03:00
committed by maibin
parent 1f26ae85e7
commit 66b0ce2d03
78 changed files with 2335 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
(function () {
'use strict';
angular
.module('app')
.controller('HomeController', HomeController);
HomeController.$inject = ['$window', '$http', '$scope'];
function HomeController($window, $http, $scope) {
var vm = this;
vm.user = null;
initController();
function initController() {
$http({
url: 'http://localhost:8082/user',
method: "GET"
}).then(function (response) {
vm.user = response.data.name;
},function(error){
console.log(error);
});
};
$scope.logout = function(){
$window.sessionStorage.setItem('userData', '');
$http.defaults.headers.common['Authorization'] = 'Basic';
}
}
})();