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.

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 the asset-server directory.

Get hands-on with 1200+ tech skills courses.