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.
2016-10-17 12:50:31 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular.module('warehost')
|
2016-10-17 23:43:14 +02:00
|
|
|
.controller('MenuHostCtrl',function(session,config,alert,$scope,$rootScope,$http){
|
2016-10-17 12:50:31 +02:00
|
|
|
$scope.profil = {};
|
|
|
|
alert.set({});
|
|
|
|
function load(){
|
|
|
|
$http.get(config.api+'/host/profil').then(function(res){
|
|
|
|
session.set(res);
|
|
|
|
$scope.profil = res.data.data;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
load();
|
2016-10-17 23:43:14 +02:00
|
|
|
$rootScope.$on('warehost.session',load);
|
2016-10-17 12:50:31 +02:00
|
|
|
|
|
|
|
});
|