1 import { Injectable } from '@angular/core';
2 import { User } from '../_models/user';
3 import { HttpClient } from '@angular/common/http';
8 export class UserService {
10 constructor(private http: HttpClient) { }
12 register(user: User) {
13 return this.http.post(`auth/register`, user);