Created
April 18, 2013 22:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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