sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/app/host/menu.js

16 lines
317 B
JavaScript
Raw Normal View History

2016-10-17 12:50:31 +02:00
'use strict';
angular.module('warehost')
.controller('MenuHostCtrl',function(session,config,alert,$scope,$http){
$scope.profil = {};
alert.set({});
function load(){
$http.get(config.api+'/host/profil').then(function(res){
session.set(res);
$scope.profil = res.data.data;
});
}
load();
});