'Angular Crud application with php mysql

I am new to angular and using version 13, i am trying to create a crud application angular at Frontend and php mysql as backend server, when i am trying to post data from angular app (Localhost:4200) to php mysql db at (localhost:8080) i have write a very simple code and i am successfully able to post data on DB but one problem is while posting data angular app sending an extra blank message, that occupy one more row in my DB, also while post data i am not able to receive response from http server but only a null array.

enter image description here

api.service.ts

enter image description here

user.component.ts

enter image description here

Response on my DB

enter image description here

My php server to receive response

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source