We have a large Marionette App, that uses Backbone.trackit to monitor unsaved changes in our Models.  We now have some nested models, in fact we have a Model, with a Collection of Models, that contain a Collection of Models.  trackit doesn't supp...
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'm relatively new to Backbone.js. I'm initializing a collection view and passing in a collection at creation time.  suggestionsView = new TreeCategoriesAutoSuggest.Views.Suggestions({     collection: new App.Collections.Suggestions(this.getS...
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....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.