php - Angular HTTP POST request doesn't create anything

Solution:

i dont know if its a backend problem with php but in my project i have it a little bit diferent (i am using .net core for backend) for example in my project:

//service component WebScrapLinkService
get(): Observable<Any[]> {
    return this.http.get<Any[]>(this.url)
    .pipe(map(res => res));
  }
//main component
getRegisters() {
    this.getProductsSub = this.crudService.get()
      .subscribe(data => {
        this.registers = data;
      })
  }
//variables
public registers: Array<object> = [];
//the service goes in the constructor
private crudService: WebScrapLinkService

this works fine for me, i hope it is useful for you

Answer

Solution:

It was just me not knowing that in PHP you have to parse HTTP_RAW_POST_DATA in order to get the data.

Source