16 lines
317 B
JavaScript
16 lines
317 B
JavaScript
|
'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();
|
||
|
|
||
|
});
|