tellform/public/modules/core/controllers/home.client.controller.js
David Baldwynn 87b351efea first commit
2015-06-29 15:51:29 -07:00

15 lines
396 B
JavaScript
Executable file

'use strict';
angular.module('core').controller('HomeController', ['$scope', 'Principal',
function($scope, Principal) {
// This provides Principal context.
$scope.authentication = Principal;
$scope.authentication.user = undefined;
Principal.identity().then(function(user){
$scope.authentication.user = user;
});
// console.log("user.displayName: "+Principal.user()._id);
}
]);