Category: Backbone
Syncing Backbone Models and Collections to admin-ajax.php
Backbone is framed around the assumption that your models and collections are backed by RESTful API’s. If this isn’t the case, life becomes difficult. WordPress provides an AJAX API for backend AJAX requests. These requests are sent through admin-ajax.php which is not RESTful. I’ve written some code to force Backbone models and collections to play nicely…