I am not able to pass an object when opening a dialog in Angular 6 [closed]
772
I have been trying to pass an object when opening a dialog to be able to edit it by calling the API with a put but when opening the dialog it appears as undefined even putting a console.log where it shows that I am having a good time.
You may be giving it a different name in the ts of the dialog. Call it the same name when you create the variable. restaurant: RestaurantDto;