Submodule 23.2: Creating new data - Forms- Practice

The results

With the previous code configured, open your Terminal, go to the jsonServer  sub-folder and run json-server --watch db.json -d 2000. This will introduce a delay of 2 seconds before the server sends the reply for the request. The server will serve the db.json file for your application. You can watch the server in your browser  URL localhost:3000 

Open another Terminal window, go to the angularChocoYourname  angular-sub-folder and run ng serve to run your application in development mode. In your browser navigate to the URL localhost:4200 

The contact page has been served by the json-server. 

We can render the data in the HTML view but we will lose these if we refresh our browser

In the next submodule, you will save the data to the db.json file.

Do a Git commit with the message "Creating data- Forms".