December 2018
Intermediate to advanced
196 pages
4h 48m
English
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. |
Time to add a new method to the PhotosService that sends information about a new photo to the server, which will add the photo to the database. HttpClient provides a post method to send a POST request. The first parameter (like get) is the URL to send the request ...
Read now
Unlock full access