class TheModel extends Backbone.RelationalModel     relations:[         type: Backbone.HasMany         key: 'subModels'         relatedModel: SubModel         collectionType: SubModels         reverseRelation:             key: 'TheModel&#...
I have a simple application which defines two classes, a Person and a PersonGroup, wherein there is a many-to-many relationship in place.  A Person can have no group, or be assigned to all groups, and anything in between.  The example on backbonerela...
Been trying to get this up and running for a while now. Basically i have a rest api as backend that returns json, all fine.  The problem i have is with backbone-relational. I'm sure i've just got something wrong but i've been searching th...
I need to destroy backbone relational model on client side, without performing any http requests. Under "destroy" word i mean removing model from all collections, removing all relations from other models to current one, and finally, removing...
I'm using Backbone relational and it's great. The problem I have run into is when I need the backend to provide the url for models to attach to.  This isn't such a problem when using one-to-one relationships because the model can hold ont...
I've just recently stared using backbone.js and since i have a rather large data-structure, i am using backbone-relational in order to keep it as lean and as fast as possible.  Now i would like to use marionette views, but i've been strugglin...
I'm having an issue wrapping my head around relational models in Backbone. I've just started using it and I'm tasked with a fairly large application.  The main issue I'm having is that I have a model that should contain a collection....
I'm trying to create a backbone relational model with 2 "hasMany" relations of the same type, but I'm getting the error: "Cannot create relation=child on "(myReverseRelationName)" for model=child: already taken by relation...
Need to call .delegateEvents() on all child views inside a parent "collection" view in order to re-delegate events after having removed the parent view from the page and then put it back on.  I can see two ways of doing this, both of which do...
I've read this and this question already but it didn't help. I called fetchRelated this way:    initialize: function(){            Artist.fetchRelated(                 'albums',                 {success: this.render}            );   }...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.