Skip to content

Instantly share code, notes, and snippets.

@shobhitsharma
Created April 18, 2013 22:29
Show Gist options
  • Save shobhitsharma/5416738 to your computer and use it in GitHub Desktop.
Save shobhitsharma/5416738 to your computer and use it in GitHub Desktop.
Populating to JSON data using "?full=true" delegate AJAX patch request in Backbone application
$.getJSON('https://your-API-link'+ model.get('id') + '?full=true', function(data) {
$('#sample-id1').val(data.name);
sample-object.push( data.tags );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment