I have several models which have their own url/api they can fetch.  I would like to keep them in a collection.   does it sound like a good idea? how would you fetch them? (I'm thinking just to get the model I want to update from the collection th...
Here's the goal: I have a parent model. It is in a collection called parents. In a parent is a collection of children. So, when I instantiate the parents collection, I get the parent models, each with the collection of children in them.  I've...
I understand that using pluck method we can get an array of attributes of each model inside a backbone collection  var idsInCollection = collection.pluck('id'); // outputs ["id1","id2"...]   I want to if there is a method that...
I am trying to update my view whenever I add a new model to my collection. My first question is do I automatically add a model to my collection when I save that model, like:   PostsApp.Views.Form = Backbone.View.extend({     template: _.template($(&#...
I have managed to work with REST API's to fetch() data where the urls contain minimal parameters (and use GET).  How would one retrieve a collection through a POST request?...
I am building a simple to-do application in backbone. my html is:  <!DOCTYPE html> <html> <head> <title>back bone</title> <script src="js/lib/jquery.js"></script> <script src="js/lib/underscore...
I use Backbone.js and I have a collections of models. This collection is retrieved and displayed on the front-end. On the front-end, I want the user to remove and add new models to the collection.  When the user is finished and he clicked "save&#...
The Parse Collection class corresponding to Backbone.Collection is no more in the SDK. It used to be there in 1.2.13....
I'm new to Backbone, and I'm very confused about what's happening when I pass a JSON array (of objects) to a Backbone Collection.  I'm fetching some JSON from a spreadsheet hosted on Google Drive. I'm parsing that data, as the act...
I want to filter a Backbone collection based on one or more of it's model's properties. I've read around the problem and I've noticed that the most discussed solution is to simply use this.where({"applicationType": application...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.