BackboneJS fetch collection based on parameters using the following code?
Correct Answer: Genres.Collection = Backbone.Collection.extend({ url: function() { return 'path to my json'; }, initialize: function(opts) { opts = opts || {}; this.genre = opts.genre || 'rock'; }, parse: function(response){ return response.data.genres[this.genre]; } });
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More BackBone.js MCQ Questions