First commit

This commit is contained in:
2015-09-10 14:02:43 +00:00
commit ab624930df
25 changed files with 933 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
(function() {
'use strict';
angular
.module('cloudbudget')
.controller('HomeController', HomeController);
HomeController.$inject = ['$rootScope'];
function HomeController($rootScope) {
var vm = this;
vm.firstname = '';
vm.lastname = '';
vm.getFullname = getFullname;
vm.user = null;
(function initController() {
loadUser();
})();
function loadUser() {
vm.user = $rootScope.globals.user;
};
function getFullname() {
return vm.firstname + ' ' + vm.lastname;
};
}
})();