Book
Submodule 23.1: Prepration
Submodule 23.1: Prepration
Completion requirements
View
Adding the Contact component
Exercise
- Create a new component named
contact
- Update the
routes.ts
file by importing the new component and adding the pathcontactus
for the new component - Update the Links in the
footer.component.html
file
In this page, we will create a form. When a user clicks the Submit button, the data of this form will be stored in the db.json
file in the feedback array
as objects (have a look at the end of your db.json file).
So, we have to create an Angular Service to send and fetch data between our application and our server.