You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: