Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Backbone Model Fetch

 var songs = new Songs(); songs.fetch({data:{page 2}, success: function(){}, error: function(){}}); 
/*create an instance of a collection and that instance uses fetch to get data from a route*/
Source by # #
 
PREVIOUS NEXT
Tagged: #Backbone #Model #Fetch
ADD COMMENT
Topic
Name
2+6 =