Saving New Data
The next step is to use the HttpClient to send new data back to the server. Let's see, how to save new data using POST request in Angular.
We'll cover the following
Saving new data in the photo gallery project
Once the user has decided which photos they’d like to save, they need a functioning Save
button. Time to hook the Save
button up to PhotosService
so that the backend can store photos the user would like to recall and edit later.
đź“ť Clearing saved photos
If you want to clear the saved photo database at any point, it’s stored in
photos.json
in theasset-server
directory.
Get hands-on with 1400+ tech skills courses.