harbor/static/ng/resources/js/harbor.initialize.js

25 lines
491 B
JavaScript
Raw Normal View History

(function() {
'use strict';
angular
.module('harbor.app')
.run(CurrentUser);
CurrentUser.$inject = ['CurrentUserService', '$log'];
function CurrentUser(CurrentUserService, $log) {
CurrentUserService()
.then(getCurrentUserComplete)
.catch(getCurrentUserFailed);
function getCurrentUserComplete(data) {
$log.info(data.data);
}
function getCurrentUserFailed(e){
$log.info(e);
}
}
})();