Submodule 23.3: Sending data to the server
Update the contact.component.ts
Update the contact.component.ts file as follows:
this.feedBackService.addFeedbacks(this.fb).subscribe(fb => this.feedbacks.push(this.fb));
Note that here we use push. We do this because we don't just take the existing values of the JSON file but we are adding new ones.