Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. API.getUser($scope.email, $scope.password).then(function(data) {
  2. $scope.user_id = (data.id);
  3. console.log($scope.user_id) // this works
  4.  
  5. });
  6.  
  7. console.log($scope.user_id); // <--- Here i'm getting undefined.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement