Skip to content

Instantly share code, notes, and snippets.

@tkh44
Created October 23, 2014 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkh44/ff6b8d3cbbad7c6c8b07 to your computer and use it in GitHub Desktop.
Save tkh44/ff6b8d3cbbad7c6c8b07 to your computer and use it in GitHub Desktop.
myApp.service('currentUser', function() {
this.user = {};
})
myApp.controller('myController', function(currentUser) {
$scope.user = currentUser.user;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment