Saving the Modified Contact

Understand the use of Backbone.Syphon plugin and how it simplifies the extraction of data from our form.

Now that we have added an “Edit” button, we need to extract the new input from the form and update it in our record.

Extract data

Before we can save our contact’s updated attributes, we need to extract them from the form. Luckily, Derick Bailey built another Backbone plugin to save us time: Backbone.Syphon. We save it in assets/js/vendor/backbone.syphon.js. Don’t forget to add it to index.html:

Get hands-on with 1200+ tech skills courses.