Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createNewUser(email: string, username: string, password: string) {
- const httpOptions = {
- headers: new HttpHeaders({
- 'Content-Type': 'application/json'
- })
- };
- const body = {
- id: Math.random(),
- nickname: username,
- email: email,
- password: password
- };
- this.http
- .post(this.baseUrl + '/userEntities', body, httpOptions)
- .subscribe();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement