This is my first angular experience and I was following an online tutorial. It's a simple servermanagerapp, everything works as expected, but to save a new server we had to use a form in a model and like it was explained in the tutorial, I couldn't make it work, so I had to improvise and had to place to modal in a seperate component. The modal is working, it calls the correct method and I'm able to get the formdata, but in the save method it is suposed to call my service to make the apicall, for some reasson it isn't called. In webstorm I can see, by pressing ctrl en clicking, that it points to the correct service(method). I have no console-errors and no idea what I'm doing wrong, any help would grately be appreciated.
My PopupComponent.ts
My Service:
MyAppComponent
With the appcomponent there aren't any issues, I'm just giving a full overview of what I''m doing. The appcomponent is also able to correctly execute all methods. In the tutorial he keeps everything in one component, but that shouldn't be an issue right? He also uses modal, I wasn't able to implement it, so I went for matDialog