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 created a simple backbone project, where it fetches all books details and show it in UI. I am fetching all the books details from the model. not at all using collection something like this  var BookModel= Backbone.Model.extend({     initialize: fun...
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 learning Backbone.  I want to create a list that can contain different  models, with different attributes.  For example, listing folder contents, which could include models of type file and models of type folder, in any order.  file : {   tit...
In my application, I am trying to use Firebase to store the real time data based on backbone framework.  The problem goes like this: I have a sub level model and collection, which are both general backbone model and collection.   var Todo = Backbone....
I have a Backbone.js collection that I would like to be able to sort using jQuery UI's Sortable. Nothing fancy, I just have a list that I would like to be able to sort.   The problem is that I'm not sure how to get the current order of items...
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($(&#...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.