I want to push an array comment in to cabin.comments array and after UPDATE of the cabin array with the new comment in it when the user submits a comment using the onSubmit() and update the cabin with the updateCabin.
In the console when running "ng serve --open" I am getting an error:
error TS1128: Declaration or statement expect
I am using a JSON database in the main folder.
I am really new to angular and I am lost.
I want to push an array comment in to cabin.comments array and after UPDATE of the cabin array with the new comment in it when the user submits a comment using the onSubmit() and update the cabin with the updateCabin. In the console when running "ng serve --open" I am getting an error:
error TS1128: Declaration or statement expect
I am using a JSON database in the main folder.
I am really new to angular and I am lost.
This is my component file with my onSubmit
My cabinService
My JSON database