Advertisement
nerdIt24

Untitled

Nov 21st, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. this.route.queryParams.subscribe(params => {
  2. console.log(params);
  3.  
  4. const token = params["token"];
  5.  
  6.  
  7. const x = "sdsd";
  8. console.log(x);
  9.  
  10. console.log(typeof params);
  11.  
  12. return this.http
  13. .post("api/v2/users/verify/:token", token, {
  14. headers: new HttpHeaders({
  15. "Content-Type": "application/json"
  16. })
  17. })
  18. .subscribe(
  19. result => {
  20. console.log(result);
  21. console.log("clicked");
  22. },
  23. error => {
  24. console.log(error);
  25. console.log("error");
  26. }
  27. );
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement