Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- API.getUser($scope.email, $scope.password).then(function(data) {
- $scope.user_id = (data.id);
- console.log($scope.user_id) // this works
- });
- console.log($scope.user_id); // <--- Here i'm getting undefined.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement