Skip to content

Instantly share code, notes, and snippets.

@alex-wilmer
Created June 17, 2014 00:31
Show Gist options
  • Save alex-wilmer/888d54fc9fd77836abdc to your computer and use it in GitHub Desktop.
Save alex-wilmer/888d54fc9fd77836abdc to your computer and use it in GitHub Desktop.
window.angular.module('go.services.global', [])
.factory('Global', function() {
var current_user = window.user;
return {
currentUser: function() {
return current_user;
},
isSignedIn: function() {
return !!current_user;
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment