July 2018
Intermediate to advanced
324 pages
8h 14m
English
To update the todo data, we would use the HTTP PATCH request for the route todos/<todo_id>. But, this time, we don't have any form and we are required to pass the data, hence we are using jQuery to make an Ajax query for the PATCH request.
We defined some attributes and methods to mark the todo data as finished, so based on the update data, we would use these methods to update the todo record.
Read now
Unlock full access