Skip to content

Instantly share code, notes, and snippets.

@nickclaw
Created May 13, 2015 17:37
Show Gist options
  • Save nickclaw/7a9f1d8e26a652e08b0e to your computer and use it in GitHub Desktop.
Save nickclaw/7a9f1d8e26a652e08b0e to your computer and use it in GitHub Desktop.
angular.module('module').factory('profile', [
function() {
var user = window.__user;
delete window.__user;
return user;
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment