Guest User

Untitled

a guest
Jan 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. var username_data = $scope.LoginUsername;
  2. var password_data = $scope.LoginPassword;
  3. var data = {username : username_data, password : password_data};
  4.  
  5. $http.post('/api/login', data)
  6. .then(function (res) {
  7. //to do...
  8. });
  9.  
  10. app.post('/api/login', function(req, res) {
  11. console.log(req.data.username);
  12. console.log(req.data.password);
  13. });
Add Comment
Please, Sign In to add comment