return this.http.post(this.config.apiUrl, user).subscribe(x=>x);
Is this arrow function but arrow function is supposed to be like this ()=>
export class ApiService {
config = new Configuration();
constructor(private http: HttpClient) { }
registerUser(user: any) {
return this.http.post(this.config.apiUrl, user).subscribe(x=>x);
}