Initial commit

This commit is contained in:
Senad Uka
2018-06-11 11:09:35 +02:00
commit ed7df7b11f
1954 changed files with 483354 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
(function () {
global.dashModule
.controller('contactPageCtrl', ['$scope', '$http', 'utilsService', contactPageCtrl])
.directive('contactPage', [contactPageDirective]);
function contactPageDirective() {
return {
restrict: 'E',
templateUrl: 'contact/html/contactTemplate'
};
}
function contactPageCtrl($scope, $http, utilsService) {
$scope.contactInfo = [];
$scope.getContactInfo = getContactInfo;
function getContactInfo() {
$http({
method: 'GET',
url: 'contact/api/getContactInfo'
}).then(setContactInfo, utilsService.onHttpError);
}
function setContactInfo(response) {
if(response.data){
$scope.contactInfo = response.data;
}
}
}
})();