Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. createNewUser(email: string, username: string, password: string) {
  2. const httpOptions = {
  3. headers: new HttpHeaders({
  4. 'Content-Type': 'application/json'
  5. })
  6. };
  7.  
  8. const body = {
  9. id: Math.random(),
  10. nickname: username,
  11. email: email,
  12. password: password
  13. };
  14.  
  15. this.http
  16. .post(this.baseUrl + '/userEntities', body, httpOptions)
  17. .subscribe();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement